[] feat: runs every night at 1am
This commit is contained in:
@@ -59,6 +59,10 @@ def filter_and_build_epg(urls):
|
||||
tree.write(f, encoding='utf-8', xml_declaration=True)
|
||||
print(f"New EPG saved to {output_file_gz}")
|
||||
|
||||
def copy_to_server():
|
||||
os.system('scp -o StrictHostKeyChecking=no '+output_file_gz+' brock@192.168.1.10:/var/www/iptv.caldwell.local/epg.xml.gz')
|
||||
os.system('ssh -o StrictHostKeyChecking=no brock@192.168.1.10 -t ')
|
||||
|
||||
urls = [
|
||||
'https://www.dropbox.com/scl/fi/i7kgakvjubjwiscuab467/m3u4u-103216-595281-EPG.xml?rlkey=ykvw6gyhx93erycl19sa6xft5&st=tlrrz59n&dl=1',
|
||||
'https://epgshare01.online/epgshare01/epg_ripper_US1.xml.gz',
|
||||
@@ -68,4 +72,5 @@ urls = [
|
||||
]
|
||||
|
||||
if __name__ == "__main__":
|
||||
filter_and_build_epg(urls)
|
||||
# filter_and_build_epg(urls)
|
||||
copy_to_server()
|
||||
|
||||
Reference in New Issue
Block a user