From 31c8f0ac0408e4cf986c0d618f5db09168528a8c Mon Sep 17 00:00:00 2001 From: codey Date: Sun, 19 Jan 2025 14:07:19 -0500 Subject: [PATCH] tweak --- lyric_search_new/sources/aggregate.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lyric_search_new/sources/aggregate.py b/lyric_search_new/sources/aggregate.py index 4584b7a..57b9799 100644 --- a/lyric_search_new/sources/aggregate.py +++ b/lyric_search_new/sources/aggregate.py @@ -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: - logging.info("Skipping source: %s, excluded.", source.label) - continue - logging.info("Cache exclude requested, ignoring") + 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 search_result = await source.search(artist=artist, song=song, plain=plain) if search_result: