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

[music] Fix lastfm importing

Colin Powell пре 6 месеци
родитељ
комит
22c07bdb82
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      vrobbler/apps/music/lastfm.py

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

@@ -55,7 +55,6 @@ class LastFM:
                     "TRACK_TITLE": "track",
                     "TRACK_TITLE": "track",
                     "ARTIST_NAME": "artist",
                     "ARTIST_NAME": "artist",
                     "ALBUM_NAME": "album",
                     "ALBUM_NAME": "album",
-                    "TIMESTAMP": "timestamp",
                 },
                 },
             )
             )
 
 
@@ -65,7 +64,7 @@ class LastFM:
 
 
             new_scrobble = Scrobble(
             new_scrobble = Scrobble(
                 user=self.vrobbler_user,
                 user=self.vrobbler_user,
-                timestamp=timestamp,
+                timestamp=lfm_scrobble.get("timestamp"),
                 source=source,
                 source=source,
                 track=track,
                 track=track,
                 timezone=timezone,
                 timezone=timezone,