mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
Merge pull request #4801 from arsaboo/spotify
Prevent reimporting album if an album is permanently removed from Spotify
This commit is contained in:
commit
430a75d1ad
2 changed files with 5 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue