Update plugins.py

This commit is contained in:
Alok Saboo 2022-07-12 16:17:46 -04:00
parent 32afd79eed
commit 5084794a94

View file

@ -733,9 +733,9 @@ class MetadataSourcePlugin(metaclass=abc.ABCMeta):
results = self._search_api(query_type='album', filters=query_filters)
if results is not None:
albums = [self.album_for_id(album_id=r['id']) for r in results]
return [a for a in albums if a is not None]
else:
albums = None
return [a for a in albums if a is not None]
return None
def item_candidates(self, item, artist, title):
"""Returns a list of TrackInfo objects for Search API results