From d8da6d0e089a14d5d634c35bef089a25112b2945 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 1 May 2016 10:34:54 +0200 Subject: [PATCH] Fix TypeError when trying to transcode - Fixes #19 --- resources/lib/playutils.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index a89479c4..20b84a8e 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -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')