feat: IYUU 辅种支持 qBittorrent 跳过校验

This commit is contained in:
John Connor
2024-05-20 22:56:18 +08:00
parent d69884c6f3
commit 2f595c6ba7
2 changed files with 26 additions and 4 deletions

View File

@@ -246,11 +246,12 @@
"name": "IYUU自动辅种",
"description": "基于IYUU官方Api实现自动辅种。",
"labels": "做种,IYUU",
"version": "1.8.1",
"version": "1.8.2",
"icon": "IYUU.png",
"author": "jxxghp",
"level": 2,
"history": {
"v1.8.2": "qBittorrent 支持跳过校验",
"v1.8.1": "判断辅种失败的情况下是否是由于token未进行站点绑定导致的",
"v1.8": "适配新版本IYUU开发版",
"v1.7": "适配馒头最新变化需要升级至v1.8.5+版本且维护好Authorization",

View File

@@ -57,6 +57,7 @@ class IYUUAutoSeed(_PluginBase):
# 开关
_enabled = False
_cron = None
_skipverify = False
_onlyonce = False
_token = None
_downloaders = []
@@ -100,6 +101,7 @@ class IYUUAutoSeed(_PluginBase):
# 读取配置
if config:
self._enabled = config.get("enabled")
self._skipverify = config.get("skipverify")
self._onlyonce = config.get("onlyonce")
self._cron = config.get("cron")
self._token = config.get("token")
@@ -388,7 +390,23 @@ class IYUUAutoSeed(_PluginBase):
'component': 'VCol',
'props': {
'cols': 12,
'md': 6
'md': 4
},
'content': [
{
'component': 'VSwitch',
'props': {
'model': 'skipverify',
'label': '跳过校验(仅qB有效)',
}
}
]
},
{
'component': 'VCol',
'props': {
'cols': 12,
'md': 4
},
'content': [
{
@@ -404,7 +422,7 @@ class IYUUAutoSeed(_PluginBase):
'component': 'VCol',
'props': {
'cols': 12,
'md': 6
'md': 4
},
'content': [
{
@@ -422,6 +440,7 @@ class IYUUAutoSeed(_PluginBase):
}
], {
"enabled": False,
"skipverify": False,
"onlyonce": False,
"notify": False,
"clearcache": False,
@@ -440,6 +459,7 @@ class IYUUAutoSeed(_PluginBase):
def __update_config(self):
self.update_config({
"enabled": self._enabled,
"skipverify": self._skipverify,
"onlyonce": self._onlyonce,
"clearcache": self._clearcache,
"cron": self._cron,
@@ -738,7 +758,8 @@ class IYUUAutoSeed(_PluginBase):
state = self.qb.add_torrent(content=content,
download_dir=save_path,
is_paused=True,
tag=["已整理", "辅种", tag])
tag=["已整理", "辅种", tag],
is_skip_checking=self._skipverify)
if not state:
return None
else: