mirror of https://github.com/Free-TV/IPTV
Disable EPG
parent
de79912c82
commit
c28dd40b2b
|
@ -33,9 +33,11 @@ def main():
|
||||||
if not (os.path.isdir(dir_playlists)):
|
if not (os.path.isdir(dir_playlists)):
|
||||||
os.mkdir(dir_playlists)
|
os.mkdir(dir_playlists)
|
||||||
with open("playlist.m3u8", "w", encoding='utf-8') as playlist:
|
with open("playlist.m3u8", "w", encoding='utf-8') as playlist:
|
||||||
processed_epg_list = ", ".join(EPG_LIST).replace('\n', '')
|
# processed_epg_list = ", ".join(EPG_LIST).replace('\n', '')
|
||||||
head_playlist = f'#EXTM3U x-tvg-url="{processed_epg_list}"'
|
# head_playlist = f'#EXTM3U x-tvg-url="{processed_epg_list}"'
|
||||||
print(f'#EXTM3U x-tvg-url="{processed_epg_list}"', file=playlist)
|
# print(f'#EXTM3U x-tvg-url="{processed_epg_list}"', file=playlist)
|
||||||
|
head_playlist = '#EXTM3U'
|
||||||
|
print('#EXTM3U')
|
||||||
os.chdir("lists")
|
os.chdir("lists")
|
||||||
for filename in sorted(os.listdir(".")):
|
for filename in sorted(os.listdir(".")):
|
||||||
if filename == "README.md" or not filename.endswith(".md"):
|
if filename == "README.md" or not filename.endswith(".md"):
|
||||||
|
|
Loading…
Reference in New Issue