Enhance LRC and SR duration matching logic by increasing tolerance from 5 seconds to 10 seconds + improve LRC websocket broadcasting logic

This commit is contained in:
2025-09-27 09:17:24 -04:00
parent 00614326a4
commit 061aed296f
6 changed files with 722 additions and 108 deletions

View File

@@ -786,7 +786,7 @@ class SRUtil:
best_track, min_diff = tracks_with_diff[0]
logging.info(f"SR: Best match duration diff: {min_diff}s")
# If the closest match is more than 5 seconds off, consider no match
if min_diff > 5:
if min_diff > 10:
logging.info("SR: Duration diff too large, no match")
return None
else: