added streamdetails

This commit is contained in:
Marcel van der Veldt 2015-05-02 02:57:58 +02:00
parent b4dd9f58bd
commit 42c7256f54
2 changed files with 23 additions and 4 deletions

View file

@ -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):