Patch the check for playlist exist on Youtube, fix #39

This commit is contained in:
LecygneNoir 2019-08-11 10:57:12 +02:00
parent 6b1260c7bc
commit b29b9cedef

View file

@ -168,7 +168,7 @@ def get_playlist_by_name(youtube, playlist_name):
maxResults=50
).execute()
for playlist in response["items"]:
if playlist["snippet"]['title'] == playlist_name:
if playlist["snippet"]['title'].encode('utf8') == str(playlist_name):
return playlist['id']