Skip to content

Commit

Permalink
Only checking translation for Musixmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
moehmeni committed May 24, 2024
1 parent ccd45fb commit 988c048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncedlyrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ 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, lang is not None):
check_translation = lang is not None and isinstance(provider, Musixmatch)
if is_lrc_valid(_l, allow_plain_format, check_translation):
logger.info(
f'synced-lyrics found for "{search_term}" on {provider.__class__.__name__}'
)
Expand Down

0 comments on commit 988c048

Please sign in to comment.