mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 18:09:16 +02:00
Patch the check for playlist exist on Youtube, fix #39
This commit is contained in:
parent
6b1260c7bc
commit
b29b9cedef
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ def get_playlist_by_name(youtube, playlist_name):
|
||||||
maxResults=50
|
maxResults=50
|
||||||
).execute()
|
).execute()
|
||||||
for playlist in response["items"]:
|
for playlist in response["items"]:
|
||||||
if playlist["snippet"]['title'] == playlist_name:
|
if playlist["snippet"]['title'].encode('utf8') == str(playlist_name):
|
||||||
return playlist['id']
|
return playlist['id']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue