0
This commit is contained in:
@@ -18,7 +18,7 @@ class Aggregate:
|
||||
|
||||
def __init__(self, exclude_methods=None):
|
||||
if not exclude_methods:
|
||||
exclude_methods = []
|
||||
exclude_methods: list = []
|
||||
self.exclude_methods = exclude_methods
|
||||
|
||||
async def search(self, artist: str, song: str) -> Optional[LyricsResult]:
|
||||
@@ -27,10 +27,10 @@ class Aggregate:
|
||||
cache_search = cache.Cache()
|
||||
genius_search = genius.Genius()
|
||||
lrclib_search = lrclib.LRCLib()
|
||||
sources = [cache_search,
|
||||
sources: list = [cache_search,
|
||||
lrclib_search,
|
||||
genius_search]
|
||||
search_result = None
|
||||
search_result: Optional[LyricsResult] = None
|
||||
for source in sources:
|
||||
if source.label.lower() in self.exclude_methods:
|
||||
logging.info("Skipping source: %s, excluded.", source.label)
|
||||
|
||||
Reference in New Issue
Block a user