mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 01:49:15 +02:00
Exit the upload when failing to add video to a playlist on Youtube, to be more consistent with Peertube, fix #33
This commit is contained in:
parent
070e05de0b
commit
42a20308f0
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue