From 7ec363230903ebc7dfcbf0660efb3be78c2e63fd Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Sat, 3 Aug 2019 19:07:56 -0700 Subject: [PATCH] Fix `year` assignment with year-only release date --- beetsplug/spotify.py | 2 +- docs/changelog.rst | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index d8d7637d6..0af0dc9aa 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -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: diff --git a/docs/changelog.rst b/docs/changelog.rst index 0252104fe..9871d8305 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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: