This commit is contained in:
2025-01-20 05:47:09 -05:00
parent 31c8f0ac04
commit 1c7a64bc58
4 changed files with 45 additions and 10 deletions

View File

@@ -43,6 +43,8 @@ class Aggregate:
sources: list = [cache_search,
lrclib_search,
genius_search]
if not plain:
sources = [lrclib_search] # Only LRCLib supported for synced lyrics
search_result: Optional[LyricsResult] = None
for source in sources:
if source.label.lower() in self.exclude_methods:
@@ -53,6 +55,7 @@ class Aggregate:
if plain:
logging.info("Skipping source: %s, excluded.", source.label)
continue
search_result = await source.search(artist=artist, song=song,
plain=plain)
if search_result: