mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-06-06 04:04:43 +02:00
support to enigma2
This commit is contained in:
parent
4cd9036814
commit
1a150636d2
4 changed files with 51 additions and 10 deletions
script
|
@ -165,6 +165,7 @@ json_file.write(", ")
|
|||
json_file.write(json.dumps(andorra.to_json()))
|
||||
json_file.write("]")
|
||||
json_file.close()
|
||||
print("JSON Updated")
|
||||
|
||||
# Save data to M3U8 file
|
||||
text_file = open('./public/output/channels.m3u8', "w+")
|
||||
|
@ -173,5 +174,12 @@ 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("M3U8 Updated")
|
||||
|
||||
print("JSON + M3U8 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")
|
||||
text_file.write(spain.to_enigma2())
|
||||
text_file.write(international.to_enigma2())
|
||||
text_file.close()
|
||||
print("ENIGMA2 Updated")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue