summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlok Saboo <arsaboo@gmx.com>2022-08-01 08:06:42 -0400
committerAlok Saboo <arsaboo@gmx.com>2022-08-01 08:06:42 -0400
commitc03537c12b9cd34d596b9e0466f8e36fa24151e0 (patch)
tree4c2126a835b4f1854717d53d73da24f2979c5eb4
parenta8434f6c380d00776dbdcf77cdced299fe470eff (diff)
Address comments
-rw-r--r--beetsplug/spotify.py4
-rw-r--r--docs/changelog.rst1
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