Fix for nfs playback
This commit is contained in:
parent
5e5dd51be1
commit
076a998f67
1 changed files with 3 additions and 7 deletions
|
@ -141,10 +141,6 @@ class PlayUtils():
|
||||||
USER_AGENT = "QuickTime/7.7.4"
|
USER_AGENT = "QuickTime/7.7.4"
|
||||||
playurl += "?|User-Agent=%s" % USER_AGENT
|
playurl += "?|User-Agent=%s" % USER_AGENT
|
||||||
|
|
||||||
if ":" not in playurl:
|
|
||||||
self.logMsg("Path seems invalid: %s" % playurl, 1)
|
|
||||||
return False
|
|
||||||
|
|
||||||
return playurl
|
return playurl
|
||||||
|
|
||||||
def isDirectStream(self, result):
|
def isDirectStream(self, result):
|
||||||
|
@ -310,9 +306,9 @@ class PlayUtils():
|
||||||
# Local or Network path
|
# Local or Network path
|
||||||
self.logMsg("Path exists.", 2)
|
self.logMsg("Path exists.", 2)
|
||||||
return True
|
return True
|
||||||
elif "nfs:" in path.lower():
|
elif ":" not in path:
|
||||||
# Give benefit of the doubt.
|
# Give benefit of the doubt for nfs.
|
||||||
self.logMsg("Can't verify path. Still try direct play.", 2)
|
self.logMsg("Can't verify path (assumed NFS). Still try direct play.", 2)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.logMsg("Path is detected as follow: %s. Try direct streaming." % path, 2)
|
self.logMsg("Path is detected as follow: %s. Try direct streaming." % path, 2)
|
||||||
|
|
Loading…
Reference in a new issue