mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-09 07:27:01 +00:00
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
|
||||
|
||||
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)
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user