From 2a1dc2f0032a940b7998d0fdacdd6a3d74ef59ca Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 17 Feb 2019 22:57:39 +0100 Subject: [PATCH] Add m3u --- script/my_script.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/script/my_script.py b/script/my_script.py index ff0dbfe2..b418e63b 100644 --- a/script/my_script.py +++ b/script/my_script.py @@ -176,6 +176,15 @@ text_file.write(international.to_m3u8()) text_file.close() print("M3U8 Updated") +# Save data to M3U file +text_file = open('./public/output/channels.m3u', "w+") +text_file.write("#EXTM3U" + "\n") +text_file.write("# @LaQuay https://github.com/LaQuay/TDTChannels" + "\n") +text_file.write(spain.to_m3u8()) +text_file.write(international.to_m3u8()) +text_file.close() +print("M3U Updated") + # Save data to .tv file (Enigma2) text_file = open('./public/output/userbouquet.tdtchannels.tv', "w+") text_file.write("#NAME @LaQuay https://github.com/LaQuay/TDTChannels" + "\n")