Browse Source

plan video only if video has been uploaded with success

develop
LecygneNoir 6 years ago
parent
commit
28f964bf2e
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      lib/pt_upload.py

+ 2
- 3
lib/pt_upload.py View File

@ -123,14 +123,13 @@ def upload_video(oauth, secret, options):
template = ('Peertube : Video was successfully uploaded.\n'
'Watch it at %s/videos/watch/%s.')
logging.info(template % (url, uuid))
if options.get('--publishAt'):
utils.publishAt(str(options.get('--publishAt')), oauth, url, idvideo, secret)
else:
logging.error(('Peertube : The upload failed with an unexpected response: '
'%s') % response)
exit(1)
if options.get('--publishAt'):
utils.publishAt(str(options.get('--publishAt')), oauth, url, idvideo)
def run(options):
secret = RawConfigParser()

Loading…
Cancel
Save