mirror of
https://github.com/Free-TV/IPTV.git
synced 2025-12-11 20:15:42 +01:00
fixed an error creating playlists by country, there was no line feed after the first line
This commit is contained in:
parent
2324c726aa
commit
e9b2f1395c
@ -43,7 +43,7 @@ def main():
|
|||||||
with open(filename, encoding='utf-8') as markup_file:
|
with open(filename, encoding='utf-8') as markup_file:
|
||||||
file_country = os.path.join("..", dir_playlists, "playlist_" + filename[:-3:] + ".m3u8")
|
file_country = os.path.join("..", dir_playlists, "playlist_" + filename[:-3:] + ".m3u8")
|
||||||
playlist_country = open(file_country, "w", encoding='utf-8')
|
playlist_country = open(file_country, "w", encoding='utf-8')
|
||||||
playlist_country.write(head_playlist)
|
playlist_country.write(head_playlist + "\n")
|
||||||
group = filename.replace(".md", "").title()
|
group = filename.replace(".md", "").title()
|
||||||
print(f"Generating {group}")
|
print(f"Generating {group}")
|
||||||
for line in markup_file:
|
for line in markup_file:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user