Signed-off-by: mbrucedogs <mbrucedogs@gmail.com>
This commit is contained in:
parent
f462da69cc
commit
c7627b4073
@ -309,7 +309,7 @@ class KaraokeDownloader:
|
|||||||
'video_title': video['title'],
|
'video_title': video['title'],
|
||||||
'match_score': score
|
'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
|
matches_this_channel += 1
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
@ -326,7 +326,7 @@ class KaraokeDownloader:
|
|||||||
'video_title': video['title'],
|
'video_title': video['title'],
|
||||||
'match_score': 100
|
'match_score': 100
|
||||||
})
|
})
|
||||||
print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (exact)")
|
# print(f" → Match: \"{artist} - {title}\" <-> \"{video['title']}\" (exact)")
|
||||||
matches_this_channel += 1
|
matches_this_channel += 1
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
@ -428,6 +428,8 @@ class KaraokeDownloader:
|
|||||||
print(f"\n⬇️ Downloading {downloaded_count+1} of {limit}:")
|
print(f"\n⬇️ Downloading {downloaded_count+1} of {limit}:")
|
||||||
print(f" 📋 Songlist: {artist} - {title}")
|
print(f" 📋 Songlist: {artist} - {title}")
|
||||||
print(f" 🎬 Video: {video['title']} ({channel_name})")
|
print(f" 🎬 Video: {video['title']} ({channel_name})")
|
||||||
|
if fuzzy_match:
|
||||||
|
print(f" 🎯 Match Score: {score:.1f}%")
|
||||||
# --- Download logic (reuse from below) ---
|
# --- Download logic (reuse from below) ---
|
||||||
safe_title = title.replace("(From ", "").replace(")", "").replace(" - ", " ").replace(":", "").replace("'", "").replace('"', "")
|
safe_title = title.replace("(From ", "").replace(")", "").replace(" - ", " ").replace(":", "").replace("'", "").replace('"', "")
|
||||||
safe_artist = artist.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"\n⬇️ Downloading {idx+1} of {total_to_download}:")
|
||||||
print(f" 📋 Songlist: {artist} - {title}")
|
print(f" 📋 Songlist: {artist} - {title}")
|
||||||
print(f" 🎬 Video: {video_title} ({channel_name})")
|
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. ---
|
# --- Existing download logic here, using channel_name, video_id, etc. ---
|
||||||
# (Copy the download logic from the previous loop, using these variables)
|
# (Copy the download logic from the previous loop, using these variables)
|
||||||
# Create a shorter, safer filename - do this ONCE and use consistently
|
# Create a shorter, safer filename - do this ONCE and use consistently
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user