修复馒头新架构辅种不成功的异常

This commit is contained in:
杨玲辉
2024-04-28 11:37:36 +08:00
parent 7ad80b0753
commit c3eb427284
2 changed files with 5 additions and 1 deletions

View File

@@ -208,11 +208,12 @@
"IYUUAutoSeed": {
"name": "IYUU自动辅种",
"description": "基于IYUU官方Api实现自动辅种。",
"version": "1.4",
"version": "1.4.1",
"icon": "IYUU.png",
"author": "jxxghp",
"level": 2,
"history": {
"v1.4.1": "修复馒头新架构辅种不成功的异常",
"v1.4": "支持馒头新架构辅种"
}
},

View File

@@ -906,6 +906,7 @@ class IYUUAutoSeed(_PluginBase):
if not _apikey:
logger.error("m-team站点的apikey未配置")
return None
logger.info(f"m-team apikey: ${_apikey}")
with RequestUtils(
headers={
'Content-Type': 'application/json',
@@ -919,6 +920,8 @@ class IYUUAutoSeed(_PluginBase):
if not res:
logger.warn(f"m-team 获取种子下载链接失败:{tid}")
return None
logger.info(f"m-team res: ${res}")
return res.json().get("data")
def __is_special_site(url: str):
"""