From 5f5453fb7721da90281165dd4fe146919c2f4cc9 Mon Sep 17 00:00:00 2001 From: Namyts <35004248+Namyts@users.noreply.github.com> Date: Sat, 14 Mar 2026 19:29:45 +0000 Subject: [PATCH] skip lines starting with # for m3u8 files --- syncplay/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index 92ae5508..e1897c0d 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -2021,6 +2021,10 @@ def loadPlaylistFromFile(self, path, shuffle=False): with open(path) as f: newPlaylist = f.read().splitlines() + if path.lower().endswith(".m3u8"): + newPlaylist = [ + line for line in newPlaylist if line.strip() and not line.startswith("#") + ] if shuffle: random.shuffle(newPlaylist) if newPlaylist: