From 076a998f6792bf56236229a20d09aff53475b327 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 25 Jul 2015 06:57:39 -0500 Subject: [PATCH] Fix for nfs playback --- resources/lib/PlayUtils.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 84a3e51e..7d7e8f90 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -141,10 +141,6 @@ class PlayUtils(): USER_AGENT = "QuickTime/7.7.4" playurl += "?|User-Agent=%s" % USER_AGENT - if ":" not in playurl: - self.logMsg("Path seems invalid: %s" % playurl, 1) - return False - return playurl def isDirectStream(self, result): @@ -310,9 +306,9 @@ class PlayUtils(): # Local or Network path self.logMsg("Path exists.", 2) return True - elif "nfs:" in path.lower(): - # Give benefit of the doubt. - self.logMsg("Can't verify path. Still try direct play.", 2) + elif ":" not in path: + # Give benefit of the doubt for nfs. + self.logMsg("Can't verify path (assumed NFS). Still try direct play.", 2) return True else: self.logMsg("Path is detected as follow: %s. Try direct streaming." % path, 2)