mirror of
https://zotify.xyz/zotify/zotify.git
synced 2025-06-22 17:36:45 +00:00
Add customized playlist padding for big playlists.
This commit is contained in:
parent
b6c68e2156
commit
1dc8768251
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def download_playlist(playlist):
|
||||||
p_bar = Printer.progress(playlist_songs, unit='song', total=len(playlist_songs), unit_scale=True)
|
p_bar = Printer.progress(playlist_songs, unit='song', total=len(playlist_songs), unit_scale=True)
|
||||||
enum = 1
|
enum = 1
|
||||||
for song in p_bar:
|
for song in p_bar:
|
||||||
download_track('extplaylist', song[TRACK][ID], extra_keys={'playlist': playlist[NAME], 'playlist_num': str(enum).zfill(2)}, disable_progressbar=True)
|
download_track('extplaylist', song[TRACK][ID], extra_keys={'playlist': playlist[NAME], 'playlist_num': str(enum).zfill(Zotify.CONFIG.get_playlist_num_pad())}, disable_progressbar=True)
|
||||||
p_bar.set_description(song[TRACK][NAME])
|
p_bar.set_description(song[TRACK][NAME])
|
||||||
enum += 1
|
enum += 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue