Skip to content

Commit

Permalink
Make the validation funciton aware of translation
Browse files Browse the repository at this point in the history
It was returning False for lyrics with `lang` provided, so we could never get it at first place.
  • Loading branch information
moehmeni committed May 24, 2024
1 parent c8aa0e9 commit 3cf97f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncedlyrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__}'
)
Expand Down

0 comments on commit 3cf97f5

Please sign in to comment.