Update url
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
link = 'https://raw.githubusercontent.com/Arrowar/SC_Domains/main/domains.json'
|
link = 'https://raw.githubusercontent.com/AstraeLabs/Domains/main/domains.json'
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
@@ -47,8 +47,10 @@ async def update_all_sites(client):
|
|||||||
for item in sites:
|
for item in sites:
|
||||||
domain = await fetch_domain(client,item)
|
domain = await fetch_domain(client,item)
|
||||||
write_config(domain,item)
|
write_config(domain,item)
|
||||||
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info('Failed to update domains: ',e)
|
logger.info('Failed to update domains: ',e)
|
||||||
|
return False
|
||||||
async def test_update_site():
|
async def test_update_site():
|
||||||
from curl_cffi.requests import AsyncSession
|
from curl_cffi.requests import AsyncSession
|
||||||
async with AsyncSession() as client:
|
async with AsyncSession() as client:
|
||||||
|
|||||||
Reference in New Issue
Block a user