[scrobbles] Fix scrobbling from IMDB urls
This commit is contained in:
@ -23,7 +23,7 @@ MEDIA_END_PADDING_SECONDS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SCROBBLE_CONTENT_URLS = {
|
SCROBBLE_CONTENT_URLS = {
|
||||||
"-v": "https://www.imdb.com/title/",
|
"-i": "https://www.imdb.com/title/",
|
||||||
"-s": "https://www.thesportsdb.com/event/",
|
"-s": "https://www.thesportsdb.com/event/",
|
||||||
"-g": "https://boardgamegeek.com/boardgame/",
|
"-g": "https://boardgamegeek.com/boardgame/",
|
||||||
"-b": "https://www.amazon.com/",
|
"-b": "https://www.amazon.com/",
|
||||||
|
|||||||
@ -142,6 +142,9 @@ def jellyfin_scrobble_media(
|
|||||||
|
|
||||||
|
|
||||||
def manual_scrobble_video(imdb_id: str, user_id: int):
|
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})
|
video = Video.find_or_create({JELLYFIN_POST_KEYS.get("IMDB_ID"): imdb_id})
|
||||||
|
|
||||||
# When manually scrobbling, try finding a source from the series
|
# When manually scrobbling, try finding a source from the series
|
||||||
|
|||||||
Reference in New Issue
Block a user