Fix failure cache not being populated

This commit is contained in:
Tim Rae
2024-06-08 20:48:26 +02:00
parent d9312d89dd
commit dc959f2657

View File

@@ -129,7 +129,6 @@ async def tidal_search(spotify_track, rate_limiter, tidal_session: tidalapi.Sess
track_search = await asyncio.to_thread( _search_for_standalone_track ) track_search = await asyncio.to_thread( _search_for_standalone_track )
if track_search: if track_search:
return track_search return track_search
return None
# if none of the search modes succeeded then store the track id to the failure cache # if none of the search modes succeeded then store the track id to the failure cache
failure_cache.cache_match_failure(spotify_track['id']) failure_cache.cache_match_failure(spotify_track['id'])