mirror of https://github.com/Free-TV/IPTV
Try to avoid f-string expression part cannot include a backslash error
parent
30d04a30e5
commit
d82b40c456
|
@ -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 = f'#EXTM3U x-tvg-url="{",".join(EPG_LIST).replace("\n","")}"'
|
||||
head_playlist = f'#EXTM3U x-tvg-url="{",".join(EPG_LIST).replace({chr(92)} + "n","")}"'
|
||||
print(f'#EXTM3U x-tvg-url="{",".join(EPG_LIST)}"', file=playlist)
|
||||
os.chdir("lists")
|
||||
for filename in sorted(os.listdir(".")):
|
||||
|
|
Loading…
Reference in New Issue