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