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