This commit is contained in:
nathannathant 2021-03-04 12:01:26 -08:00
parent 628e0a67c3
commit eb19e7345c

View File

@ -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(