From c03537c12b9cd34d596b9e0466f8e36fa24151e0 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Mon, 1 Aug 2022 08:06:42 -0400 Subject: [PATCH] Address comments --- beetsplug/spotify.py | 4 ++-- docs/changelog.rst | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 3181b1f41..f1aecb583 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -58,7 +58,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): 'spotify_tempo': types.FLOAT, 'spotify_time_signature': types.INTEGER, 'spotify_valence': types.FLOAT, - 'spotify_lastupdatedat': DateType(), + 'spotify_updated': DateType(), } # Base URLs for the Spotify API @@ -648,7 +648,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): if feature in self.spotify_audio_features.keys(): item[self.spotify_audio_features[feature]] = \ audio_features[feature] - item['spotify_lastupdatedat'] = datetime.datetime.now() + item['spotify_updated'] = datetime.datetime.now() item.store() if write: item.try_write() diff --git a/docs/changelog.rst b/docs/changelog.rst index 163e69f72..e6323393f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -8,6 +8,7 @@ Changelog goes here! New features: +* Added `spotify_updated` field to track when the information was last updated. * We now import and tag the `album` information when importing singletons using Spotify source. :bug:`4398` * :doc:`/plugins/spotify`: The plugin now provides an additional command