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() fs = fs.strip()
# default to pre-chosen string if format is invalid # default to pre-chosen string if format is invalid
if ( if file_format in ("MP3", "Unknown") and (
file_format in ("MP3", "Unknown") "bit_depth" in fs or "sampling_rate" in fs
and "bit_depth" in file_format
or "sampling_rate" in file_format
): ):
default = DEFAULT_FORMATS[file_format][i] default = DEFAULT_FORMATS[file_format][i]
logger.error( logger.error(