From 85b500e41a83d682b7f41e897795dc306c8b14f4 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sat, 17 Sep 2022 20:25:36 -0400 Subject: [PATCH 1/3] Fix spotify_updated bug --- beetsplug/spotify.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index f1aecb583..66b2b1084 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -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() From e4063b5880300c7a06b09732e94175e6c8ec8c4d Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sat, 17 Sep 2022 20:56:48 -0400 Subject: [PATCH 2/3] remove datetype --- beetsplug/spotify.py | 1 - 1 file changed, 1 deletion(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 66b2b1084..ad9c775a5 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -57,7 +57,6 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): 'spotify_tempo': types.FLOAT, 'spotify_time_signature': types.INTEGER, 'spotify_valence': types.FLOAT, - 'spotify_updated': DateType(), } # Base URLs for the Spotify API From 469219916659ff08f6ef213588998f3968e74ef6 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sat, 17 Sep 2022 21:05:16 -0400 Subject: [PATCH 3/3] Add dateype back --- beetsplug/spotify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index ad9c775a5..66b2b1084 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -57,6 +57,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): 'spotify_tempo': types.FLOAT, 'spotify_time_signature': types.INTEGER, 'spotify_valence': types.FLOAT, + 'spotify_updated': DateType(), } # Base URLs for the Spotify API