mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix optional Jellyfin RunTimeTicks (#108254)
This commit is contained in:
parent
145657dc21
commit
ff4e9eb31e
@ -150,7 +150,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…
x
Reference in New Issue
Block a user