Fix year assignment with year-only release date

This commit is contained in:
Rahul Ahuja 2019-08-03 19:07:56 -07:00
parent 3275081d09
commit 7ec3632309
2 changed files with 4 additions and 2 deletions

View file

@ -173,7 +173,7 @@ class SpotifyPlugin(BeetsPlugin):
year, month = date_parts
day = None
elif release_date_precision == 'year':
year = date_parts
year = date_parts[0]
month = None
day = None
else:

View file

@ -80,8 +80,10 @@ Fixes:
* :doc:`plugins/replaygain`: Fix the storage format in R128 gain tags.
:bug:`3311` :bug:`3314`
* :doc:`/plugins/discogs`: Fixed a crash that occurred when the Master URI
isn't set
isn't set.
:bug:`2965` :bug:`3239`
* :doc:`/plugins/spotify`: Fix handling of year-only release dates
returned by Spotify Albums API.
For plugin developers: