fixed + operator error

This commit is contained in:
nathannathant 2021-02-25 21:35:47 -08:00
parent bdb98bb59e
commit e03d3aa97f

View File

@ -153,8 +153,7 @@ def download_and_tag(
new_track_title = f"{new_track_title} ({version})" new_track_title = f"{new_track_title} ({version})"
track_file = f'{track_metadata["track_number"]:02}. {new_track_title}' track_file = f'{track_metadata["track_number"]:02}. {new_track_title}'
final_file = os.path.join(root_dir, sanitize_filename(track_file))[:250] final_file = os.path.join(root_dir, sanitize_filename(track_file))[:250] + extension
+ extension
if os.path.isfile(final_file): if os.path.isfile(final_file):
logger.info(f"{OFF}{new_track_title} was already downloaded") logger.info(f"{OFF}{new_track_title} was already downloaded")