mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Pass api_url to upload_pending
This commit is contained in:
@@ -317,10 +317,10 @@ def check_pending():
|
|||||||
% (num, SCRIPT_NAME, AsciiCast.QUEUE_DIR)
|
% (num, SCRIPT_NAME, AsciiCast.QUEUE_DIR)
|
||||||
|
|
||||||
|
|
||||||
def upload_pending():
|
def upload_pending(api_url):
|
||||||
print 'Uploading pending asciicasts...'
|
print 'Uploading pending asciicasts...'
|
||||||
for path in pending_list():
|
for path in pending_list():
|
||||||
url = Uploader(path).upload()
|
url = Uploader(api_url, path).upload()
|
||||||
if url:
|
if url:
|
||||||
print url
|
print url
|
||||||
|
|
||||||
@@ -435,7 +435,7 @@ def main():
|
|||||||
if not AsciiCast(api_url, user_token, command, title, record_input).create():
|
if not AsciiCast(api_url, user_token, command, title, record_input).create():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif action == 'upload':
|
elif action == 'upload':
|
||||||
upload_pending()
|
upload_pending(api_url)
|
||||||
elif action == 'auth':
|
elif action == 'auth':
|
||||||
auth(api_url, user_token)
|
auth(api_url, user_token)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user