소스 검색

[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,