mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Address comments
This commit is contained in:
parent
a8434f6c38
commit
c03537c12b
2 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue