mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 07:44:38 +01:00
Update plugins.py
This commit is contained in:
parent
32afd79eed
commit
5084794a94
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue