mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Error out if playlist not found
This commit is contained in:
@@ -348,13 +348,19 @@ def grab_playlist(playlist):
|
|||||||
if not playlist['name'] == None:
|
if not playlist['name'] == None:
|
||||||
if playlist['id'] == playlist_id:
|
if playlist['id'] == playlist_id:
|
||||||
playlists['next'] = None
|
playlists['next'] = None
|
||||||
|
found = True
|
||||||
break
|
break
|
||||||
if playlists['next']:
|
if playlists['next']:
|
||||||
playlists = spotify.next(playlists)
|
playlists = spotify.next(playlists)
|
||||||
else:
|
else:
|
||||||
|
found = False
|
||||||
break
|
break
|
||||||
|
|
||||||
write_playlist(playlist)
|
if found:
|
||||||
|
write_playlist(playlist)
|
||||||
|
else:
|
||||||
|
print('Unable to find playlist')
|
||||||
|
print('Make sure the playlist is set to publicly visible and then try again')
|
||||||
|
|
||||||
|
|
||||||
def grab_album(album):
|
def grab_album(album):
|
||||||
|
|||||||
Reference in New Issue
Block a user