mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 05:36:12 +00:00
added streamdetails
This commit is contained in:
parent
b4dd9f58bd
commit
42c7256f54
2 changed files with 23 additions and 4 deletions
|
@ -99,8 +99,8 @@ class API():
|
|||
for mediaStream in MediaStreams:
|
||||
if(mediaStream.get("Type") == "Video"):
|
||||
videocodec = mediaStream.get("Codec")
|
||||
height = str(mediaStream.get("Height"))
|
||||
width = str(mediaStream.get("Width"))
|
||||
height = int(mediaStream.get("Height"))
|
||||
width = int(mediaStream.get("Width"))
|
||||
aspectratio = mediaStream.get("AspectRatio")
|
||||
if aspectratio != None and len(aspectratio) >= 3:
|
||||
try:
|
||||
|
@ -116,7 +116,7 @@ class API():
|
|||
'audiocodec' : audiocodec,
|
||||
'height' : height,
|
||||
'width' : width,
|
||||
'aspectratio' : str(aspectfloat)
|
||||
'aspectratio' : aspectfloat
|
||||
}
|
||||
|
||||
def getChecksum(self, item):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue