From 506de848d7a1b3b1900f3661d9b4ac4708a65309 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sat, 21 Jan 2023 23:57:25 -0500 Subject: [PATCH] Pull client name from Jellyfin if provided --- vrobbler/apps/scrobbles/scrobblers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 24897bd..3783253 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/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, }