1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-06-04 11:28:25 +02:00

Update script

This commit is contained in:
Marc 2018-12-24 10:32:19 +01:00
parent 7696de898d
commit 6fb7e7bc78
4 changed files with 4 additions and 20 deletions

View file

@ -65,7 +65,7 @@ def get_channels_from_part(text):
return channel_list
page = requests.get('https://raw.githubusercontent.com/LaQuay/TDTChannels/master/README.md',
page = requests.get('https://raw.githubusercontent.com/LaQuay/TDTChannels/master/TELEVISION.md',
headers={'Cache-Control': 'no-cache'})
content = str(page.text)
@ -149,7 +149,7 @@ international.add_ambit(Ambito("Internacional", get_channels_from_part(canales_i
# Save data to JSON file
json_file = open('./public/output/channels.json', "w+")
# TODO Anadir copyright
# TODO Add license
json_file.write("[")
json_file.write(json.dumps(spain.to_json()))
json_file.write(", ")