mirror of
https://github.com/Footsiefat/zspotify
synced 2021-12-21 22:06:14 +01:00
Added possibility to set playlist_num in output filename
This commit is contained in:
parent
de0f8b30b1
commit
8e6cc08205
@ -82,8 +82,10 @@ def download_from_urls(urls: list[str]) -> bool:
|
||||
download = True
|
||||
playlist_songs = get_playlist_songs(playlist_id)
|
||||
name, _ = get_playlist_info(playlist_id)
|
||||
enum = 1
|
||||
for song in playlist_songs:
|
||||
download_track('playlist', song[TRACK][ID], extra_keys={'playlist': name})
|
||||
download_track('playlist', song[TRACK][ID], extra_keys={'playlist': name, 'playlist_num': str(enum).zfill(3)})
|
||||
enum += 1
|
||||
elif episode_id is not None:
|
||||
download = True
|
||||
download_episode(episode_id)
|
||||
|
Loading…
Reference in New Issue
Block a user