mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 15:09:12 +00:00
判断辅种失败的情况下,是否是由于token未进行站点绑定导致的
This commit is contained in:
@@ -244,11 +244,12 @@
|
||||
"name": "IYUU自动辅种",
|
||||
"description": "基于IYUU官方Api实现自动辅种。",
|
||||
"labels": "做种,IYUU",
|
||||
"version": "1.8",
|
||||
"version": "1.8.1",
|
||||
"icon": "IYUU.png",
|
||||
"author": "jxxghp",
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v1.8.1": "判断辅种失败的情况下,是否是由于token未进行站点绑定导致的",
|
||||
"v1.8": "适配新版本IYUU开发版",
|
||||
"v1.7": "适配馒头最新变化,需要升级至v1.8.5+版本且维护好Authorization",
|
||||
"v1.6": "增加不辅种小体积种子功能",
|
||||
|
||||
@@ -34,7 +34,7 @@ class IYUUAutoSeed(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "IYUU.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.8"
|
||||
plugin_version = "1.8.1"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -625,7 +625,11 @@ class IYUUAutoSeed(_PluginBase):
|
||||
# 查询可辅种数据
|
||||
seed_list, msg = self.iyuuhelper.get_seed_info(hashs)
|
||||
if not isinstance(seed_list, dict):
|
||||
logger.warn(f"当前种子列表没有可辅种的站点:{msg}")
|
||||
# 判断辅种异常是否是由于Token未认证导致的,由于没有解决接口,只能从返回值来判断
|
||||
if self._token and msg == '请求缺少token':
|
||||
logger.warn(f'IYUU辅种失败,疑似站点未绑定插件配置不完整,请先检查是否完成站点绑定!{msg}')
|
||||
else:
|
||||
logger.warn(f"当前种子列表没有可辅种的站点:{msg}")
|
||||
return
|
||||
else:
|
||||
logger.info(f"IYUU返回可辅种数:{len(seed_list)}")
|
||||
@@ -946,12 +950,12 @@ class IYUUAutoSeed(_PluginBase):
|
||||
logger.error("m-team站点的apikey未配置")
|
||||
return None
|
||||
res = RequestUtils(
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': f'{site.get("ua")}',
|
||||
'Accept': 'application/json, text/plain, */*',
|
||||
'x-api-key': apikey
|
||||
}
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': f'{site.get("ua")}',
|
||||
'Accept': 'application/json, text/plain, */*',
|
||||
'x-api-key': apikey
|
||||
}
|
||||
).post_res(f"{site.get('url')}api/torrent/genDlToken", params={
|
||||
'id': tid
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user