From debe273cfb690cd94dcaff86940b416026c701c3 Mon Sep 17 00:00:00 2001 From: Kamil Date: Wed, 11 Dec 2024 00:02:14 +0000 Subject: [PATCH] fix: remove unnecessary .mp3 extension checks in download_missing_tracks method --- app/tasks.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/tasks.py b/app/tasks.py index 07f5b61..f0a7208 100644 --- a/app/tasks.py +++ b/app/tasks.py @@ -168,12 +168,7 @@ def download_missing_tracks(self): db.session.commit() continue - # if outpur_dir not ends with .mp3, we need to add it - if not output_dir.endswith(".mp3"): - output_dir += ".mp3" - if not file_path.endswith(".mp3"): - file_path += ".mp3" - + # region search before download if search_before_download: