From 0189377aeb0c195d03c16d51f2ba6a1ffa7ecff5 Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Fri, 19 Jan 2024 11:11:27 +0300 Subject: [PATCH] fixed track name --- akarpov/music/services/db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/akarpov/music/services/db.py b/akarpov/music/services/db.py index 8dded45..f1a1dea 100644 --- a/akarpov/music/services/db.py +++ b/akarpov/music/services/db.py @@ -61,9 +61,7 @@ def load_track( # Check if title is in name if title in name_clean: name = search_info["title"] - elif name: - name = name - else: + elif not name: name = process_track_name(" ".join(p_name.strip().split("-"))) if not name: