From 1c21821f4a7889437f42ffd56c26f898b372777b Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Tue, 2 May 2023 08:22:54 -0400 Subject: [PATCH] Added changelog and additional error handling --- beetsplug/fetchart.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 85d5472aa..869b5be8a 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -986,7 +986,7 @@ class CoverArtUrl(RemoteArtSource): image_url = None try: image_url = album.items().get().cover_art_url - except AttributeError: + except (AttributeError, TypeError): self._log.debug('Cover art URL not found for {0}', album) return if image_url: diff --git a/docs/changelog.rst b/docs/changelog.rst index d7ddf6d03..8ca8d711a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,8 @@ for Python 3.6). New features: +* Added option use `cover_art_arl` as an album art source in the `fetchart` plugin. + :bug:`4707` * :doc:`/plugins/fetchart`: The plugin can now get album art from `spotify`. * Added option to specify a URL in the `embedart` plugin. :bug:`83`