mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
Update spotify.py
This commit is contained in:
parent
7aa7df2a93
commit
c73ecb89d3
1 changed files with 2 additions and 1 deletions
|
|
@ -295,10 +295,11 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
"""
|
||||
artist, artist_id = self.get_artist(track_data['artists'])
|
||||
|
||||
self._log.debug("Track Data is {}", track_data)
|
||||
# Get album information for spotify tracks
|
||||
try:
|
||||
album = track_data['album']['name']
|
||||
except KeyError:
|
||||
except (KeyError, TypeError):
|
||||
album = None
|
||||
return TrackInfo(
|
||||
title=track_data['name'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue