Ai
1 Star 0 Fork 0

gfdgd xi/wine-mirrors-websize

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
change-to-github.py 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
gfdgd xi 提交于 2023-11-04 17:08 +08:00 . 全部切换至github
#!/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))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/gfdgd-xi/wine-mirrors-websize.git
git@gitee.com:gfdgd-xi/wine-mirrors-websize.git
gfdgd-xi
wine-mirrors-websize
wine-mirrors-websize
master

搜索帮助