mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fetches all user playlists now (was limited to 50)
This commit is contained in:
13
spotdl.py
13
spotdl.py
@@ -119,10 +119,15 @@ def feed_playlist(username):
|
||||
links = []
|
||||
check = 1
|
||||
# iterate over user playlists
|
||||
for playlist in playlists['items']:
|
||||
print(str(check) + '. ' + misc.fix_encoding(playlist['name']) + ' (' + str(playlist['tracks']['total']) + ' tracks)')
|
||||
links.append(playlist)
|
||||
check += 1
|
||||
while True:
|
||||
for playlist in playlists['items']:
|
||||
print(str(check) + '. ' + misc.fix_encoding(playlist['name']) + ' (' + str(playlist['tracks']['total']) + ' tracks)')
|
||||
links.append(playlist)
|
||||
check += 1
|
||||
if playlists['next']:
|
||||
playlists = spotify.next(playlists)
|
||||
else:
|
||||
break
|
||||
print('')
|
||||
# let user select playlist
|
||||
playlist = misc.input_link(links)
|
||||
|
||||
Reference in New Issue
Block a user