diff --git a/lyric_search_new/sources/aggregate.py b/lyric_search_new/sources/aggregate.py index 7eec5a0..d9a08a8 100644 --- a/lyric_search_new/sources/aggregate.py +++ b/lyric_search_new/sources/aggregate.py @@ -68,12 +68,13 @@ class Aggregate: if not search_result: logging.info("%s - %s: all sources exhausted, not found.", artist, song) - try: - await self.redis_cache.increment_found_count("failed") - except Exception as e: - traceback.print_exc() - logging.info("Could not increment redis failed counter: %s", - str(e)) - self.notifier.send(f"ERROR @ {__file__.rsplit("/", maxsplit=1)[-1]}", - f"Could not increment redis failed counter: {str(e)}") + if plain: # do not record LRC fails + try: + await self.redis_cache.increment_found_count("failed") + except Exception as e: + traceback.print_exc() + logging.info("Could not increment redis failed counter: %s", + str(e)) + self.notifier.send(f"ERROR @ {__file__.rsplit("/", maxsplit=1)[-1]}", + f"Could not increment redis failed counter: {str(e)}") return search_result \ No newline at end of file