From bbcef5d82c1316ff41b95d4ef229d0ea850c41f7 Mon Sep 17 00:00:00 2001 From: Ridan Vandenbergh Date: Mon, 18 Oct 2021 21:10:35 +0200 Subject: [PATCH] Allow .m3u/.m3u8 files to be played from network (#419) --- syncplay/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index fb769c6..acc4027 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -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