From 988c048d2dfcfb262ac8953ee62422a2ba0d7046 Mon Sep 17 00:00:00 2001 From: Mohammad Momeni Date: Fri, 24 May 2024 13:39:29 +0200 Subject: [PATCH] Only checking translation for Musixmatch --- syncedlyrics/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncedlyrics/__init__.py b/syncedlyrics/__init__.py index 869cc6e..7c0e12a 100644 --- a/syncedlyrics/__init__.py +++ b/syncedlyrics/__init__.py @@ -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__}' )