Remove newlines from EPG list

pull/317/head
Kálmán „KAMI” Szalai 2023-03-15 06:36:19 +01:00
parent a57f6bc1dc
commit 3cbf813b17
1 changed files with 1 additions and 1 deletions

View File

@ -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(".")):