From 2af33394776deb48f130f8bdd5fdeb533fc9af73 Mon Sep 17 00:00:00 2001 From: ljmeng Date: Wed, 24 Apr 2024 00:31:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9D=92=E8=9B=99=E8=BE=85=E7=A7=8D?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=94=AF=E6=8C=81=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- plugins/crossseed/__init__.py | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9a7caeb..9f6b98a 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/plugins/crossseed/__init__.py b/plugins/crossseed/__init__.py index c33fb51..d05f63a 100644 --- a/plugins/crossseed/__init__.py +++ b/plugins/crossseed/__init__.py @@ -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" # 作者主页