Commit cb7c1e79 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

backend: fix cache lookup

parent 8fd862d4
......@@ -159,7 +159,7 @@ class YouTubeLibraryProvider(backend.LibraryProvider):
def _get_ytdl_tracks(self, uri, y_id=None):
"""Return a list of tracks given an ari based on ytdl."""
if y_id is not None:
if y_id is not None and y_id in cache:
return get_cache(y_id)
yt_uri = call_ytdl(uri)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment