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