do not report LRC search fails, LRCs known to be more limited

This commit is contained in:
codey 2025-01-24 06:31:12 -05:00
parent 85a7440c67
commit b0a9af0560

View File

@ -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