Fix optional Jellyfin RunTimeTicks (#108254)
parent
efe9938b33
commit
649dd433d5
|
@ -149,7 +149,9 @@ class JellyfinMediaPlayer(JellyfinEntity, MediaPlayerEntity):
|
|||
media_content_type = CONTENT_TYPE_MAP.get(self.now_playing["Type"], None)
|
||||
media_content_id = self.now_playing["Id"]
|
||||
media_title = self.now_playing["Name"]
|
||||
media_duration = int(self.now_playing["RunTimeTicks"] / 10000000)
|
||||
|
||||
if "RunTimeTicks" in self.now_playing:
|
||||
media_duration = int(self.now_playing["RunTimeTicks"] / 10000000)
|
||||
|
||||
if media_content_type == MediaType.EPISODE:
|
||||
media_content_type = MediaType.TVSHOW
|
||||
|
|
Loading…
Reference in New Issue