Skip to content

Commit

Permalink
Merge pull request #4801 from arsaboo/spotify
Browse files Browse the repository at this point in the history
Prevent reimporting album if an album is permanently removed from Spotify
  • Loading branch information
sampsyo authored May 26, 2023
2 parents a19bc05 + 1ed41d3 commit 430a75d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beetsplug/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def album_for_id(self, album_id):
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 = [
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 430a75d

Please sign in to comment.