Skip to content

Commit 988c048

Browse files
committed
Only checking translation for Musixmatch
1 parent ccd45fb commit 988c048

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

syncedlyrics/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def search(
6868
if enhanced and not _l:
6969
# Since enhanced is only supported by Musixmatch, break if no LRC is found
7070
break
71-
if is_lrc_valid(_l, allow_plain_format, lang is not None):
71+
check_translation = lang is not None and isinstance(provider, Musixmatch)
72+
if is_lrc_valid(_l, allow_plain_format, check_translation):
7273
logger.info(
7374
f'synced-lyrics found for "{search_term}" on {provider.__class__.__name__}'
7475
)

0 commit comments

Comments
 (0)