Skip to content

Commit 09bfdf1

Browse files
committed
feat: github文件下载注释掉一个不及时更新的镜像
1 parent 006d2ad commit 09bfdf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

download.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def download_github_raw_content(
131131
"""
132132
# 先加入比较快的几个镜像
133133
urls = [
134-
f"https://github.do/https://raw.githubusercontent.com/{owner}/{repo_name}/{branch_name}/{filepath_in_repo}",
134+
# 下面这个似乎会缓存很久,不会及时更新,先注释掉
135+
# f"https://github.do/https://raw.githubusercontent.com/{owner}/{repo_name}/{branch_name}/{filepath_in_repo}",
135136
f"https://hk1.monika.love/{owner}/{repo_name}/{branch_name}/{filepath_in_repo}",
136137
]
137138

@@ -166,4 +167,4 @@ def download_github_raw_content(
166167

167168
if __name__ == "__main__":
168169
# download_latest_github_release()
169-
download_github_raw_content("CHANGELOG.MD")
170+
download_github_raw_content("config.cloud.toml")

0 commit comments

Comments
 (0)