mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
去除github失效加速镜像
This commit is contained in:
parent
b979dca498
commit
c127378419
@ -23,7 +23,6 @@ async def get_fastest_raw_formats() -> list[str]:
|
|||||||
formats: dict[str, str] = {
|
formats: dict[str, str] = {
|
||||||
"https://raw.githubusercontent.com/": RAW_CONTENT_FORMAT,
|
"https://raw.githubusercontent.com/": RAW_CONTENT_FORMAT,
|
||||||
"https://ghproxy.cc/": f"https://ghproxy.cc/{RAW_CONTENT_FORMAT}",
|
"https://ghproxy.cc/": f"https://ghproxy.cc/{RAW_CONTENT_FORMAT}",
|
||||||
# "https://mirror.ghproxy.com/": f"https://mirror.ghproxy.com/{RAW_CONTENT_FORMAT}",
|
|
||||||
"https://gh-proxy.com/": f"https://gh-proxy.com/{RAW_CONTENT_FORMAT}",
|
"https://gh-proxy.com/": f"https://gh-proxy.com/{RAW_CONTENT_FORMAT}",
|
||||||
"https://cdn.jsdelivr.net/": "https://cdn.jsdelivr.net/gh/{owner}/{repo}@{branch}/{path}",
|
"https://cdn.jsdelivr.net/": "https://cdn.jsdelivr.net/gh/{owner}/{repo}@{branch}/{path}",
|
||||||
}
|
}
|
||||||
@ -36,7 +35,6 @@ async def get_fastest_archive_formats() -> list[str]:
|
|||||||
formats: dict[str, str] = {
|
formats: dict[str, str] = {
|
||||||
"https://github.com/": ARCHIVE_URL_FORMAT,
|
"https://github.com/": ARCHIVE_URL_FORMAT,
|
||||||
"https://ghproxy.cc/": f"https://ghproxy.cc/{ARCHIVE_URL_FORMAT}",
|
"https://ghproxy.cc/": f"https://ghproxy.cc/{ARCHIVE_URL_FORMAT}",
|
||||||
# "https://mirror.ghproxy.com/": f"https://mirror.ghproxy.com/{ARCHIVE_URL_FORMAT}",
|
|
||||||
"https://gh-proxy.com/": f"https://gh-proxy.com/{ARCHIVE_URL_FORMAT}",
|
"https://gh-proxy.com/": f"https://gh-proxy.com/{ARCHIVE_URL_FORMAT}",
|
||||||
}
|
}
|
||||||
return await __get_fastest_formats(formats)
|
return await __get_fastest_formats(formats)
|
||||||
@ -48,7 +46,6 @@ async def get_fastest_release_formats() -> list[str]:
|
|||||||
formats: dict[str, str] = {
|
formats: dict[str, str] = {
|
||||||
"https://objects.githubusercontent.com/": RELEASE_ASSETS_FORMAT,
|
"https://objects.githubusercontent.com/": RELEASE_ASSETS_FORMAT,
|
||||||
"https://ghproxy.cc/": f"https://ghproxy.cc/{RELEASE_ASSETS_FORMAT}",
|
"https://ghproxy.cc/": f"https://ghproxy.cc/{RELEASE_ASSETS_FORMAT}",
|
||||||
# "https://mirror.ghproxy.com/": f"https://mirror.ghproxy.com/{RELEASE_ASSETS_FORMAT}",
|
|
||||||
"https://gh-proxy.com/": f"https://gh-proxy.com/{RELEASE_ASSETS_FORMAT}",
|
"https://gh-proxy.com/": f"https://gh-proxy.com/{RELEASE_ASSETS_FORMAT}",
|
||||||
}
|
}
|
||||||
return await __get_fastest_formats(formats)
|
return await __get_fastest_formats(formats)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user