Browse Source

[music] Fix timestamp setting in lastfm importer

Colin Powell 8 tháng trước cách đây
mục cha
commit
cdb3c29844
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      vrobbler/apps/music/lastfm.py

+ 2 - 1
vrobbler/apps/music/lastfm.py

@@ -62,9 +62,10 @@ class LastFM:
             if self.vrobbler_user.profile:
                 timezone = self.vrobbler_user.profile.timezone
 
+            timestamp = lfm_scrobble.get("timestamp")
             new_scrobble = Scrobble(
                 user=self.vrobbler_user,
-                timestamp=lfm_scrobble.get("timestamp"),
+                timestamp=timestamp,
                 source=source,
                 track=track,
                 timezone=timezone,