From 74f96b2e136a528891fa2770501f4ad7842d0f6b Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 28 Mar 2015 19:07:57 +0100 Subject: [PATCH] fix in playutils --- resources/lib/PlayUtils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 11abde06..8deff44b 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -76,11 +76,10 @@ class PlayUtils(): # Works out if we are direct playing or not def isDirectPlay(self, result): - # if (self.fileExists(result) or (result.get("LocationType") == "FileSystem" and self.isNetworkQualitySufficient(result) == True and self.isLocalPath(result) == False)): - # return True - # else: - # return False - return False + if (self.fileExists(result) or (result.get("LocationType") == "FileSystem" and self.isNetworkQualitySufficient(result) == True and self.isLocalPath(result) == False)): + return True + else: + return False # Works out if the network quality can play directly or if transcoding is needed