mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 12:35:19 +01:00
Merge pull request #4492 from arsaboo/spotify_date
Fix spotify_updated bug so that the date is not "null"
This commit is contained in:
commit
b11df49705
1 changed files with 1 additions and 2 deletions
|
|
@ -19,7 +19,6 @@ Spotify playlist construction.
|
|||
|
||||
import base64
|
||||
import collections
|
||||
import datetime
|
||||
import json
|
||||
import re
|
||||
import time
|
||||
|
|
@ -648,7 +647,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
if feature in self.spotify_audio_features.keys():
|
||||
item[self.spotify_audio_features[feature]] = \
|
||||
audio_features[feature]
|
||||
item['spotify_updated'] = datetime.datetime.now()
|
||||
item['spotify_updated'] = time.time()
|
||||
item.store()
|
||||
if write:
|
||||
item.try_write()
|
||||
|
|
|
|||
Loading…
Reference in a new issue