mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
feat: cross_seed jump stopped site
This commit is contained in:
@@ -198,10 +198,13 @@
|
||||
"CrossSeed": {
|
||||
"name": "青蛙辅种助手",
|
||||
"description": "参考ReseedPuppy和IYUU辅种插件实现自动辅种,支持站点:青蛙、AGSVPT、麒麟、UBits、聆音、憨憨等。",
|
||||
"version": "2.1",
|
||||
"version": "2.2",
|
||||
"icon": "qingwa.png",
|
||||
"author": "233@qingwa",
|
||||
"level": 2
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v2.2": "站点停用后会同步暂停对该站点的辅种"
|
||||
}
|
||||
},
|
||||
"VCBAnimeMonitor": {
|
||||
"name": "整理VCB动漫压制组作品",
|
||||
|
||||
@@ -177,11 +177,11 @@ class CrossSeed(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "qingwa.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.1"
|
||||
plugin_version = "2.2"
|
||||
# 插件作者
|
||||
plugin_author = "233@qingwa"
|
||||
# 作者主页
|
||||
author_url = "https://new.qingwa.pro/"
|
||||
author_url = "https://qingwapt.com/"
|
||||
# 插件配置项ID前缀
|
||||
plugin_config_prefix = "cross_seed_"
|
||||
# 加载顺序
|
||||
@@ -955,6 +955,11 @@ class CrossSeed(_PluginBase):
|
||||
# 逐个站点查询可辅种数据
|
||||
chunk_size = 100
|
||||
for site_config in self._site_cs_infos:
|
||||
# 检查站点是否已经停用
|
||||
db_site = self.siteoper.get(site_config.id)
|
||||
if db_site and not db_site.is_active:
|
||||
logger.info(f"站点{site_config.name}已停用,跳过辅种")
|
||||
return
|
||||
remote_tors: List[TorInfo] = []
|
||||
total_size = len(pieces_hashes)
|
||||
for i in range(0, len(pieces_hashes), chunk_size):
|
||||
|
||||
Reference in New Issue
Block a user