修改源

This commit is contained in:
gfdgd xi 2023-05-09 22:40:26 +08:00
parent 85895b5ae2
commit 4d10470776
2 changed files with 13 additions and 2 deletions

View File

@ -18,12 +18,22 @@ import updatekiller
import req as requests
homePath = os.path.expanduser('~')
try:
sources = [
sourcesList = [
"http://fonts.wine-runner.gfdgdxi.top/list.json",
"https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/fonts/list.json"
]
fontList = json.loads(requests.get(sources[0]).text)
change = False
for i in sourcesList:
try:
fontList = json.loads(requests.get(i).text)
change = True
break
except:
pass
if not change:
fontList = json.loads(requests.get(sourcesList[0]).text)
except:
print("使用离线列表")
fontList = [
[
"fake_simsun.ttc",

View File

@ -31,6 +31,7 @@ try:
if not change:
netList = json.loads(requests.get(sourcesList[0]).text)
except:
print("使用离线列表")
netList = [
["VC6 运行库", "http://vcpp.wine-runner.gfdgdxi.top/VC6RedistSetup_deu.exe", "VC6RedistSetup_deu.exe"],
["2005 Service Pack 1 Redistributable Package MFC 安全更新", "https://download.microsoft.com/download/4/A/2/4A22001F-FA3B-4C13-BF4E-42EC249D51C4/vcredist_x86.EXE", "vcredist05_x86.exe"],