From e23c1efe4e48bd8a2a30cd8f65ceca6b0c2f6ce8 Mon Sep 17 00:00:00 2001 From: Ridan Vandenbergh Date: Wed, 12 May 2021 02:48:34 +0200 Subject: [PATCH] Don't load from file if path starts with http(s):// --- syncplay/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index d627a05..a165b7a 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -569,7 +569,8 @@ class SyncplayClient(object): return 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) return