feat: 青蛙辅种插件支持代理

This commit is contained in:
ljmeng
2024-04-24 00:31:40 +08:00
parent 899a96eaae
commit 2af3339477
2 changed files with 9 additions and 4 deletions

View File

@@ -201,12 +201,13 @@
"CrossSeed": {
"name": "青蛙辅种助手",
"description": "参考ReseedPuppy和IYUU辅种插件实现自动辅种支持站点青蛙、AGSVPT、麒麟、UBits、聆音、憨憨等。",
"version": "2.2",
"version": "2.3",
"icon": "qingwa.png",
"author": "233@qingwa",
"level": 2,
"history": {
"v2.2": "站点停用后会同步暂停对该站点的辅种"
"v2.2": "站点停用后会同步暂停对该站点的辅种",
"v2.3": "站点辅种支持代理"
}
},
"VCBAnimeMonitor": {

View File

@@ -154,7 +154,11 @@ class CrossSeedHelper(object):
remote_torrent_infos = []
try:
response = requests.post(
site.get_api_url(), headers=headers, json=data, timeout=10
site.get_api_url(),
headers=headers,
json=data,
timeout=10,
proxies=settings.PROXY if site.proxy else None,
)
response.raise_for_status()
rsp_body = response.json()
@@ -177,7 +181,7 @@ class CrossSeed(_PluginBase):
# 插件图标
plugin_icon = "qingwa.png"
# 插件版本
plugin_version = "2.2"
plugin_version = "2.3"
# 插件作者
plugin_author = "233@qingwa"
# 作者主页