全部切换至github
This commit is contained in:
parent
6aa05d2049
commit
b11e0b5e54
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import json
|
||||
with open(f"information.json", "r") as file:
|
||||
things = json.loads(file.read())
|
||||
newThings = []
|
||||
for i in things:
|
||||
if not "http://seafile.jyx2048.com:2345/spark-deepin-wine-runner/data/" in i[1]:
|
||||
newThings.append(i)
|
||||
continue
|
||||
lists = i
|
||||
pathName = os.path.basename(lists[1])
|
||||
pathNameWithoutEnd = os.path.splitext(pathName)[0]
|
||||
lists[1] = f"https://github.com/rain-gfd/wine-download/releases/download/{pathNameWithoutEnd}/{pathName}"
|
||||
newThings.append(lists)
|
||||
#newThings.append()
|
||||
with open("information.json", "w") as file:
|
||||
file.write(json.dumps(newThings, ensure_ascii=False, indent=4))
|
396
information.json
396
information.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue