瀏覽代碼

[scrobbles] Fix TSV importer to use new item

Colin Powell 3 周之前
父節點
當前提交
90726fe560
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      vrobbler/apps/scrobbles/importers/tsv.py

+ 1 - 2
vrobbler/apps/scrobbles/importers/tsv.py

@@ -75,10 +75,9 @@ def import_audioscrobbler_tsv_file(file_path, user_id):
             source=source,
             log={"rockbox_info": rockbox_info, "album_name": album_name},
             playback_position_seconds=track.run_time_seconds,
-            track=track,
+            item=track,
             played_to_completion=True,
             in_progress=False,
-            media_type=MediaType.TRACK,
             timezone=timestamp.tzinfo.name,
         )
         existing = Scrobble.objects.filter(