From dff9d89787e861cc4b7ab60d9208f98a489be0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20=E2=80=9EKAMI=E2=80=9D=20Szalai?= Date: Wed, 15 Mar 2023 06:36:19 +0100 Subject: [PATCH] Remove newlines from EPG list --- make_playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_playlist.py b/make_playlist.py index 5a21a30..b4bdcc0 100755 --- a/make_playlist.py +++ b/make_playlist.py @@ -33,7 +33,7 @@ def main(): if not (os.path.isdir(dir_playlists)): os.mkdir(dir_playlists) with open("playlist.m3u8", "w", encoding='utf-8') as playlist: - head_playlist = '#EXTM3U x-tvg-url="{",".join(EPG_LIST)}"' + head_playlist = '#EXTM3U x-tvg-url="{",".join(EPG_LIST).replace("\n","")}"' print(f'#EXTM3U x-tvg-url="{",".join(EPG_LIST)}"', file=playlist) os.chdir("lists") for filename in sorted(os.listdir(".")):