This commit is contained in:
2025-11-22 21:41:12 -05:00
parent dcc6c7b24e
commit 3d0b867427
6 changed files with 97 additions and 249 deletions

View File

@@ -1,4 +1,3 @@
import logging
import os
import urllib.parse
import regex
@@ -187,7 +186,7 @@ class LyricSearch(FastAPI):
},
)
excluded_sources: Optional[list] = data.excluded_sources
excluded_sources: list = data.excluded_sources or []
aggregate_search = aggregate.Aggregate(exclude_methods=excluded_sources)
plain_lyrics: bool = not data.lrc
result: Optional[Union[LyricsResult, dict]] = await aggregate_search.search(