[scrobbles] Fix scrobbling from IMDB urls

This commit is contained in:
2024-09-26 22:12:58 -04:00
parent f876caabe1
commit bbe8149e6c
2 changed files with 4 additions and 1 deletions

View File

@ -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/",

View File

@ -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