Jelajahi Sumber

Pull client name from Jellyfin if provided

Colin Powell 2 tahun lalu
induk
melakukan
506de848d7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      vrobbler/apps/scrobbles/scrobblers.py

+ 1 - 1
vrobbler/apps/scrobbles/scrobblers.py

@@ -119,7 +119,7 @@ def create_jellyfin_scrobble_dict(data_dict: dict, user_id: int) -> dict:
         "timestamp": parse(data_dict.get("UtcTimestamp")),
         "playback_position_ticks": playback_position_ticks,
         "playback_position": playback_position,
-        "source": "Jellyfin",
+        "source": data_dict.get("ClientName", "Jellyfin"),
         "source_id": data_dict.get('MediaSourceId'),
         "jellyfin_status": jellyfin_status,
     }