Fix TypeError when trying to transcode

- Fixes #19
This commit is contained in:
tomkat83 2016-05-01 10:34:54 +02:00
parent 68ced3a4a1
commit d8da6d0e08

View file

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