mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-05 18:24:19 +02:00
Correctly check if a playlist has been created on Youtube before trying to add an uploaded video to it, cf #33
This commit is contained in:
parent
b29b9cedef
commit
070e05de0b
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ def initialize_upload(youtube, options):
|
|||
if video_id and options.get('--thumbnail'):
|
||||
set_thumbnail(youtube, options.get('--thumbnail'), videoId=video_id)
|
||||
|
||||
# If we get a video_id, upload is successful and we are able to set playlist
|
||||
if video_id and options.get('--playlist'):
|
||||
# If we get a video_id and a playlist_id, upload is successful and we are able to set playlist
|
||||
if video_id and playlist_id != "":
|
||||
set_playlist(youtube, playlist_id, video_id)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue