Don't load from file if path starts with http(s)://
This commit is contained in:
parent
896d30430c
commit
e23c1efe4e
@ -569,7 +569,8 @@ class SyncplayClient(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def openFile(self, filePath, resetPosition=False, fromUser=False):
|
def openFile(self, filePath, resetPosition=False, fromUser=False):
|
||||||
if fromUser and filePath.endswith(".txt") or filePath.endswith(".m3u") or filePath.endswith(".m3u8"):
|
if not (filePath.startswith("http://") or filePath.startswith("https://"))\
|
||||||
|
and ((fromUser and filePath.endswith(".txt")) or filePath.endswith(".m3u") or filePath.endswith(".m3u8")):
|
||||||
self.playlist.loadPlaylistFromFile(filePath, resetPosition)
|
self.playlist.loadPlaylistFromFile(filePath, resetPosition)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user