mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
fixed a nullreference
This commit is contained in:
parent
986a37455e
commit
6a3feb5f77
1 changed files with 4 additions and 2 deletions
|
@ -101,7 +101,9 @@ class API():
|
||||||
for mediaStream in MediaStreams:
|
for mediaStream in MediaStreams:
|
||||||
if(mediaStream.get("Type") == "Video"):
|
if(mediaStream.get("Type") == "Video"):
|
||||||
videocodec = mediaStream.get("Codec")
|
videocodec = mediaStream.get("Codec")
|
||||||
|
if mediaStream.get("Height"):
|
||||||
height = int(mediaStream.get("Height"))
|
height = int(mediaStream.get("Height"))
|
||||||
|
if mediaStream.get("Width"):
|
||||||
width = int(mediaStream.get("Width"))
|
width = int(mediaStream.get("Width"))
|
||||||
aspectratio = mediaStream.get("AspectRatio")
|
aspectratio = mediaStream.get("AspectRatio")
|
||||||
Video3DFormat = item.get("Video3DFormat")
|
Video3DFormat = item.get("Video3DFormat")
|
||||||
|
|
Loading…
Reference in a new issue