[videos] Fix error where we add tt to the IMDB id

This commit is contained in:
2025-02-02 23:02:44 -05:00
parent 25900a9911
commit 15f27b73a5
2 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,9 @@ def jellyfin_scrobble_media(
/ 10000000
)
if media_type == Scrobble.MediaType.VIDEO:
media_obj = Video.find_or_create(post_data)
media_obj = Video.get_from_imdb_id(
post_data.get("Provider_imdb", "").replace("tt", "")
)
else:
media_obj = get_or_create_track(
post_data, post_keys=JELLYFIN_POST_KEYS