Browse Source

Exit the upload when failing to add video to a playlist on Youtube, to be more consistent with Peertube, fix #33

master
LecygneNoir 4 years ago
parent
commit
42a20308f0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/yt_upload.py

+ 2
- 0
lib/yt_upload.py View File

@ -252,8 +252,10 @@ def set_playlist(youtube, playlist_id, video_id):
except Exception as e:
if hasattr(e, 'message'):
logging.error("Youtube: Error: " + str(e.message))
exit(1)
else:
logging.error("Youtube: Error: " + str(e))
exit(1)
logging.info('Youtube: Video is correctly added to the playlist.')

Loading…
Cancel
Save