Improve network quality logging

This commit is contained in:
angelblue05 2015-08-08 10:11:41 -05:00
parent e0b51cd437
commit 1660a29e68

View file

@ -227,12 +227,13 @@ class PlayUtils():
try:
mediaSources = result[u'MediaSources']
sourceBitRate = int(mediaSources[0][u'Bitrate'])
self.logMsg("The video quality selected is: %s, the video bitrate required to direct stream is: %s." % (settingsVideoBitRate, sourceBitRate), 1)
if settingsVideoBitRate > sourceBitRate:
return True
else:
return False
except:
self.logMsg("Bitrate value is missing.")
else:
self.logMsg("The video quality selected is: %s, the video bitrate required to direct stream is: %s." % (settingsVideoBitRate, sourceBitRate), 1)
if settingsVideoBitRate < sourceBitRate:
return False
return True
def getVideoBitRate(self):