tweak
This commit is contained in:
parent
5e4dbe7b50
commit
31c8f0ac04
@ -46,10 +46,13 @@ class Aggregate:
|
|||||||
search_result: Optional[LyricsResult] = None
|
search_result: Optional[LyricsResult] = None
|
||||||
for source in sources:
|
for source in sources:
|
||||||
if source.label.lower() in self.exclude_methods:
|
if source.label.lower() in self.exclude_methods:
|
||||||
if source.label.lower() != "cache" or not plain:
|
if source.label.lower() == "cache" or not plain:
|
||||||
logging.info("Skipping source: %s, excluded.", source.label)
|
logging.info("Exclude conditions rejected - source requested to exclude: %s, plain: %s",
|
||||||
continue
|
source.label, plain)
|
||||||
logging.info("Cache exclude requested, ignoring")
|
else:
|
||||||
|
if plain:
|
||||||
|
logging.info("Skipping source: %s, excluded.", source.label)
|
||||||
|
continue
|
||||||
search_result = await source.search(artist=artist, song=song,
|
search_result = await source.search(artist=artist, song=song,
|
||||||
plain=plain)
|
plain=plain)
|
||||||
if search_result:
|
if search_result:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user