summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uprez.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uprez.py b/uprez.py
index 18f2709..cc9b694 100644
--- a/uprez.py
+++ b/uprez.py
@@ -72,9 +72,9 @@ subprocess.call([
])
if opt.folder_id > 0:
- mp4 = os.path.join(out_dir, out_fn + '.mp4')
+ mp4 = os.path.join(out_dir, opt.out_fn + '.mp4')
print("upload {}".format(mp4))
- endpoint = os.getenv('API_REMOTE') + '/api/file/'
+ endpoint = os.getenv('API_REMOTE') + '/api/folder/{}/upload/'.format(opt.folder_id)
subprocess.call([
"curl",
"-X", "POST",