From 5084794a94115e532982bd80f3bbab58e3187712 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Tue, 12 Jul 2022 16:17:46 -0400 Subject: [PATCH] Update plugins.py --- beets/plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/plugins.py b/beets/plugins.py index b31c55482..9b966cc19 100644 --- a/beets/plugins.py +++ b/beets/plugins.py @@ -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