From 1dfe60c01f99de261c45f463548f1e536d9b095f Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Sun, 31 Mar 2024 12:10:43 -0600 Subject: [PATCH] fix --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9cf01e8..f8f289d 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,8 @@ def find_song(query, songs_dir): for file in files: if file.endswith(".mp3"): song_path = os.path.join(root, file) - song_name = os.path.relpath(song_path, start=songs_dir) + #song_name = os.path.relpath(song_path, start=songs_dir) # full path doesnt return good results + song_name = os.path.splitext(file)[0] confidence = process.extractOne(query, [song_name.replace("_", " ")])[1] if confidence > best_confidence: