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: