From bbe8149e6c296968f4847c41fae1fd9dfa5a323c Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 26 Sep 2024 22:12:58 -0400 Subject: [PATCH] [scrobbles] Fix scrobbling from IMDB urls --- vrobbler/apps/scrobbles/constants.py | 2 +- vrobbler/apps/scrobbles/scrobblers.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/constants.py b/vrobbler/apps/scrobbles/constants.py index 984f1b7..1c9ce49 100644 --- a/vrobbler/apps/scrobbles/constants.py +++ b/vrobbler/apps/scrobbles/constants.py @@ -23,7 +23,7 @@ MEDIA_END_PADDING_SECONDS = { } SCROBBLE_CONTENT_URLS = { - "-v": "https://www.imdb.com/title/", + "-i": "https://www.imdb.com/title/", "-s": "https://www.thesportsdb.com/event/", "-g": "https://boardgamegeek.com/boardgame/", "-b": "https://www.amazon.com/", diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 7c7d505..dfa9eb3 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -142,6 +142,9 @@ def jellyfin_scrobble_media( def manual_scrobble_video(imdb_id: str, user_id: int): + if "tt" not in imdb_id: + imdb_id = "tt" + imdb_id + video = Video.find_or_create({JELLYFIN_POST_KEYS.get("IMDB_ID"): imdb_id}) # When manually scrobbling, try finding a source from the series