From 3cf97f57861c094799d8e4414b8ee3ef07f24432 Mon Sep 17 00:00:00 2001 From: Mohammad Momeni Date: Fri, 24 May 2024 13:36:25 +0200 Subject: [PATCH] Make the validation funciton aware of translation It was returning False for lyrics with `lang` provided, so we could never get it at first place. --- syncedlyrics/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncedlyrics/__init__.py b/syncedlyrics/__init__.py index 27d0315..869cc6e 100644 --- a/syncedlyrics/__init__.py +++ b/syncedlyrics/__init__.py @@ -68,7 +68,7 @@ def search( if enhanced and not _l: # Since enhanced is only supported by Musixmatch, break if no LRC is found break - if is_lrc_valid(_l, allow_plain_format): + if is_lrc_valid(_l, allow_plain_format, lang is not None): logger.info( f'synced-lyrics found for "{search_term}" on {provider.__class__.__name__}' )