summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules <jules@asdf.us>2019-01-18 01:59:37 +0100
committerjules <jules@asdf.us>2019-01-18 01:59:37 +0100
commitd682a19167b92d48998822d93a8619c55fc4335f (patch)
tree79f5ac56912c3e8480e2e119768f1fe94fb5a9cf
parenteb34603e42271e751a54f2dedf4a4b3abae83987 (diff)
uprez
-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",