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
1 changed files with 1 additions and 8 deletions

View File

@ -55,7 +55,7 @@ class PlayUtils():
# Set playmethod property
utils.window('emby_%s.playmethod' % playurl, "DirectStream")
elif self.isTranscoding():
else:
self.logMsg("File is transcoding.", 1)
quality = {
'maxVideoBitrate': self.getBitrate(),
@ -216,13 +216,6 @@ class PlayUtils():
return False
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):
# get the addon video quality
videoQuality = utils.settings('transcoderVideoQualities')