diff --git a/beetsplug/VGMplug.py b/beetsplug/VGMplug.py index 317d58a..f6947df 100644 --- a/beetsplug/VGMplug.py +++ b/beetsplug/VGMplug.py @@ -141,7 +141,9 @@ def _search_vgmdbinfo(self, query: str): ) for album in items["results"]["albums"]: album_id = album["link"].split("/")[1] - albums.append(self.album_for_id(album_id)) + candidate_album = self.album_for_id(album_id) + if candidate_album is not None: + albums.append(candidate_album) if len(albums) >= 5: self._log.debug("Too many result on VGMDB, breaking") break diff --git a/pyproject.toml b/pyproject.toml index beb9d1c..8e842ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "beets-vgmdb" -version = "1.2.5" +version = "1.2.6" authors = [{name="HO ZhenWai Olivier", email="hozhenwai@gmail.com"}] description = "Beets VGMdb metadata plugin and collection manager." readme = "README.md"