diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 4e60666..07c0eb7 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -22,6 +22,7 @@ from scrobbles.constants import ( SCROBBLE_CONTENT_URLS, ) from scrobbles.models import Scrobble +from scrobbles.utils import convert_to_seconds from sports.models import SportEvent from sports.thesportsdb import lookup_event_from_thesportsdb from tasks.models import Task @@ -117,7 +118,9 @@ def jellyfin_scrobble_media( title=post_data.get("Name", ""), artist_name=post_data.get("Artist", ""), album_name=post_data.get("Album", ""), - run_time_seconds=post_data.get("RunTime", 900000), + run_time_seconds=convert_to_seconds( + post_data.get("RunTime", 900000) + ), musicbrainz_id=post_data.get("Provider_musicbrainztrack", ""), ) # A hack because we don't worry about updating music ... we either finish it or we don't