diff --git a/karaoke_downloader/downloader.py b/karaoke_downloader/downloader.py index 46e3753..aecd75d 100644 --- a/karaoke_downloader/downloader.py +++ b/karaoke_downloader/downloader.py @@ -309,7 +309,7 @@ class KaraokeDownloader: 'video_title': video['title'], 'match_score': score }) - print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (score: {score})") + # print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (score: {score})") matches_this_channel += 1 found = True break @@ -326,7 +326,7 @@ class KaraokeDownloader: 'video_title': video['title'], 'match_score': 100 }) - print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (exact)") + # print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (exact)") matches_this_channel += 1 found = True break @@ -428,6 +428,8 @@ class KaraokeDownloader: print(f"\n⬇️ Downloading {downloaded_count+1} of {limit}:") print(f" 📋 Songlist: {artist} - {title}") print(f" 🎬 Video: {video['title']} ({channel_name})") + if fuzzy_match: + print(f" 🎯 Match Score: {score:.1f}%") # --- Download logic (reuse from below) --- safe_title = title.replace("(From ", "").replace(")", "").replace(" - ", " ").replace(":", "").replace("'", "").replace('"', "") safe_artist = artist.replace("'", "").replace('"', "") @@ -518,6 +520,8 @@ class KaraokeDownloader: print(f"\n⬇️ Downloading {idx+1} of {total_to_download}:") print(f" 📋 Songlist: {artist} - {title}") print(f" 🎬 Video: {video_title} ({channel_name})") + if 'match_score' in item: + print(f" 🎯 Match Score: {item['match_score']:.1f}%") # --- Existing download logic here, using channel_name, video_id, etc. --- # (Copy the download logic from the previous loop, using these variables) # Create a shorter, safer filename - do this ONCE and use consistently