From 1dc8768251241c6f7a66f088b963d705b9203731 Mon Sep 17 00:00:00 2001 From: PhYrE Date: Wed, 24 Apr 2024 01:43:35 +0200 Subject: [PATCH] Add customized playlist padding for big playlists. --- zotify/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotify/playlist.py b/zotify/playlist.py index 53c1941..f8c4828 100644 --- a/zotify/playlist.py +++ b/zotify/playlist.py @@ -53,7 +53,7 @@ def download_playlist(playlist): p_bar = Printer.progress(playlist_songs, unit='song', total=len(playlist_songs), unit_scale=True) enum = 1 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]) enum += 1