From eb19e7345ca2da2cb841088655d63b503017da3d Mon Sep 17 00:00:00 2001 From: nathannathant <74019033+pynathanthomas@users.noreply.github.com> Date: Thu, 4 Mar 2021 12:01:26 -0800 Subject: [PATCH] typo --- qobuz_dl/downloader.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qobuz_dl/downloader.py b/qobuz_dl/downloader.py index ec45ffb..45df69c 100644 --- a/qobuz_dl/downloader.py +++ b/qobuz_dl/downloader.py @@ -367,10 +367,8 @@ def _clean_format_str(folder: str, track: str, file_format: str) -> Tuple[str, s fs = fs.strip() # default to pre-chosen string if format is invalid - if ( - file_format in ("MP3", "Unknown") - and "bit_depth" in file_format - or "sampling_rate" in file_format + if file_format in ("MP3", "Unknown") and ( + "bit_depth" in fs or "sampling_rate" in fs ): default = DEFAULT_FORMATS[file_format][i] logger.error(