Address comments

This commit is contained in:
Alok Saboo 2022-08-01 08:06:42 -04:00
parent a8434f6c38
commit c03537c12b
2 changed files with 3 additions and 2 deletions

View file

@ -58,7 +58,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
'spotify_tempo': types.FLOAT, 'spotify_tempo': types.FLOAT,
'spotify_time_signature': types.INTEGER, 'spotify_time_signature': types.INTEGER,
'spotify_valence': types.FLOAT, 'spotify_valence': types.FLOAT,
'spotify_lastupdatedat': DateType(), 'spotify_updated': DateType(),
} }
# Base URLs for the Spotify API # Base URLs for the Spotify API
@ -648,7 +648,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
if feature in self.spotify_audio_features.keys(): if feature in self.spotify_audio_features.keys():
item[self.spotify_audio_features[feature]] = \ item[self.spotify_audio_features[feature]] = \
audio_features[feature] audio_features[feature]
item['spotify_lastupdatedat'] = datetime.datetime.now() item['spotify_updated'] = datetime.datetime.now()
item.store() item.store()
if write: if write:
item.try_write() item.try_write()

View file

@ -8,6 +8,7 @@ Changelog goes here!
New features: 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. * We now import and tag the `album` information when importing singletons using Spotify source.
:bug:`4398` :bug:`4398`
* :doc:`/plugins/spotify`: The plugin now provides an additional command * :doc:`/plugins/spotify`: The plugin now provides an additional command