Fixed issue when downloading multiple playlists

This commit is contained in:
logykk
2021-11-17 21:29:15 +13:00
parent 2638805741
commit b9d42c4d7d
3 changed files with 16 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ def convert_audio_format(filename) -> None:
os.replace(filename, temp_filename)
download_format = ZSpotify.get_config(DOWNLOAD_FORMAT).lower()
file_codec = CODEC_MAP.get(download_format, "copy")
file_codec = CODEC_MAP.get(download_format, 'copy')
if file_codec != 'copy':
bitrate = ZSpotify.get_config(BITRATE)
if not bitrate: