Allow .m3u/.m3u8 files to be played from network (#419)
This commit is contained in:
parent
2bf3931f59
commit
bbcef5d82c
@ -589,7 +589,8 @@ class SyncplayClient(object):
|
|||||||
return trustable and trusted
|
return trustable and trusted
|
||||||
|
|
||||||
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