parent
68ced3a4a1
commit
d8da6d0e08
1 changed files with 1 additions and 8 deletions
|
@ -55,7 +55,7 @@ class PlayUtils():
|
||||||
# Set playmethod property
|
# Set playmethod property
|
||||||
utils.window('emby_%s.playmethod' % playurl, "DirectStream")
|
utils.window('emby_%s.playmethod' % playurl, "DirectStream")
|
||||||
|
|
||||||
elif self.isTranscoding():
|
else:
|
||||||
self.logMsg("File is transcoding.", 1)
|
self.logMsg("File is transcoding.", 1)
|
||||||
quality = {
|
quality = {
|
||||||
'maxVideoBitrate': self.getBitrate(),
|
'maxVideoBitrate': self.getBitrate(),
|
||||||
|
@ -216,13 +216,6 @@ class PlayUtils():
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def isTranscoding(self):
|
|
||||||
# Make sure the server supports it
|
|
||||||
if not self.item['MediaSources'][0]['SupportsTranscoding']:
|
|
||||||
return False
|
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
def getBitrate(self):
|
def getBitrate(self):
|
||||||
# get the addon video quality
|
# get the addon video quality
|
||||||
videoQuality = utils.settings('transcoderVideoQualities')
|
videoQuality = utils.settings('transcoderVideoQualities')
|
||||||
|
|
Loading…
Reference in a new issue