Преглед изворни кода

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