mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 03:03:45 +08:00
禁用cos下载方式
This commit is contained in:
parent
6cf6809625
commit
08e43959f5
@ -2,34 +2,34 @@ import asyncio
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, List, Tuple, Union
|
from typing import Dict, List, Tuple, Union
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
from msgspec import json as msgjson
|
|
||||||
from gsuid_core.logger import logger
|
|
||||||
from aiohttp.client import ClientSession
|
|
||||||
from aiohttp import TCPConnector, ClientTimeout
|
|
||||||
from gsuid_core.utils.download_resource.download_file import download
|
|
||||||
from gsuid_core.utils.download_resource.download_core import find_fastest_url
|
|
||||||
|
|
||||||
from .download_url import download_file
|
|
||||||
from .RESOURCE_PATH import (
|
from .RESOURCE_PATH import (
|
||||||
WIKI_PATH,
|
CHAR_ICON_PATH,
|
||||||
|
CHAR_PORTRAIT_PATH,
|
||||||
|
CHAR_PREVIEW_PATH,
|
||||||
|
CONSUMABLE_PATH,
|
||||||
|
ELEMENT_PATH,
|
||||||
|
GUIDE_CHARACTER_PATH,
|
||||||
|
GUIDE_LIGHT_CONE_PATH,
|
||||||
GUIDE_PATH,
|
GUIDE_PATH,
|
||||||
RELIC_PATH,
|
RELIC_PATH,
|
||||||
|
RESOURCE_PATH,
|
||||||
SKILL_PATH,
|
SKILL_PATH,
|
||||||
WEAPON_PATH,
|
WEAPON_PATH,
|
||||||
ELEMENT_PATH,
|
|
||||||
RESOURCE_PATH,
|
|
||||||
CHAR_ICON_PATH,
|
|
||||||
WIKI_ROLE_PATH,
|
|
||||||
CONSUMABLE_PATH,
|
|
||||||
WIKI_RELIC_PATH,
|
|
||||||
CHAR_PREVIEW_PATH,
|
|
||||||
CHAR_PORTRAIT_PATH,
|
|
||||||
GUIDE_CHARACTER_PATH,
|
|
||||||
WIKI_LIGHT_CONE_PATH,
|
WIKI_LIGHT_CONE_PATH,
|
||||||
GUIDE_LIGHT_CONE_PATH,
|
|
||||||
WIKI_MATERIAL_FOR_ROLE,
|
WIKI_MATERIAL_FOR_ROLE,
|
||||||
|
WIKI_PATH,
|
||||||
|
WIKI_RELIC_PATH,
|
||||||
|
WIKI_ROLE_PATH,
|
||||||
)
|
)
|
||||||
|
from .download_url import download_file
|
||||||
|
|
||||||
|
from aiohttp import ClientTimeout, TCPConnector
|
||||||
|
from aiohttp.client import ClientSession
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
from gsuid_core.logger import logger
|
||||||
|
from gsuid_core.utils.download_resource.download_core import find_fastest_url
|
||||||
|
from gsuid_core.utils.download_resource.download_file import download
|
||||||
|
from msgspec import json as msgjson
|
||||||
|
|
||||||
with Path.open(
|
with Path.open(
|
||||||
Path(__file__).parent / 'resource_map.json', encoding='UTF-8'
|
Path(__file__).parent / 'resource_map.json', encoding='UTF-8'
|
||||||
@ -44,7 +44,7 @@ async def check_speed():
|
|||||||
logger.info('[GsCore资源下载]测速中...')
|
logger.info('[GsCore资源下载]测速中...')
|
||||||
|
|
||||||
URL_LIB = {
|
URL_LIB = {
|
||||||
'[cos]': 'http://182.43.43.40:8765',
|
#'[cos]': 'http://182.43.43.40:8765',
|
||||||
'[qianxu-jp]': 'https://jp.qxqx.me',
|
'[qianxu-jp]': 'https://jp.qxqx.me',
|
||||||
'[qianxu-kr]': 'https://kr-arm.qxqx.me',
|
'[qianxu-kr]': 'https://kr-arm.qxqx.me',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user