mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Improve network quality logging
This commit is contained in:
parent
e0b51cd437
commit
1660a29e68
1 changed files with 7 additions and 6 deletions
|
@ -227,13 +227,14 @@ class PlayUtils():
|
||||||
try:
|
try:
|
||||||
mediaSources = result[u'MediaSources']
|
mediaSources = result[u'MediaSources']
|
||||||
sourceBitRate = int(mediaSources[0][u'Bitrate'])
|
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:
|
except:
|
||||||
return True
|
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):
|
def getVideoBitRate(self):
|
||||||
# get the addon video quality
|
# get the addon video quality
|
||||||
|
|
Loading…
Reference in a new issue