Merge pull request #4804 from arsaboo/fetchfix

Fetchart: Use the right field to obtain Spotify album id
This commit is contained in:
Adrian Sampson 2023-05-30 15:40:31 -07:00 committed by GitHub
commit d35a8cdebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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()

View file

@ -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.