瀏覽代碼

[music] Fix timestamp setting in lastfm importer

Colin Powell 8 月之前
父節點
當前提交
cdb3c29844
共有 1 個文件被更改,包括 2 次插入1 次删除
  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,