Merge pull request #4801 from arsaboo/spotify

Prevent reimporting album if an album is permanently removed from Spotify
This commit is contained in:
Adrian Sampson 2023-05-25 20:10:00 -07:00 committed by GitHub
commit 430a75d1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -219,6 +219,9 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
album_data = self._handle_response(
requests.get, self.album_url + spotify_id
)
if album_data['name'] == "":
self._log.debug("Album removed from Spotify: {}", album_id)
return None
artist, artist_id = self.get_artist(album_data['artists'])
date_parts = [

View file

@ -11,6 +11,8 @@ for Python 3.6).
New features:
* Prevent reimporting album if it is permanently removed from Spotify
:bug:`4800`
* 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`.