mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 01:13:02 +01:00
Merge pull request #4804 from arsaboo/fetchfix
Fetchart: Use the right field to obtain Spotify album id
This commit is contained in:
commit
d35a8cdebd
2 changed files with 7 additions and 1 deletions
|
|
@ -956,7 +956,11 @@ class Spotify(RemoteArtSource):
|
|||
return HAS_BEAUTIFUL_SOUP
|
||||
|
||||
def get(self, album, plugin, paths):
|
||||
url = self.SPOTIFY_ALBUM_URL + album.mb_albumid
|
||||
try:
|
||||
url = self.SPOTIFY_ALBUM_URL + album.items().get().spotify_album_id
|
||||
except AttributeError:
|
||||
self._log.debug('Fetchart: no Spotify album ID found')
|
||||
return
|
||||
try:
|
||||
response = requests.get(url)
|
||||
response.raise_for_status()
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ for Python 3.6).
|
|||
|
||||
New features:
|
||||
|
||||
* Fetchart: Use the right field (`spotify_album_id`) to obtain the Spotify album id
|
||||
:bug:`4803`
|
||||
* 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue