fix IYUUAutoSeed站点流控问题

This commit is contained in:
jxxghp
2023-08-11 14:38:34 +08:00
parent 5116f7b059
commit acbbf67c2f
6 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@ -698,7 +698,9 @@ class IYUUAutoSeed(_PluginBase):
self.exist += 1 self.exist += 1
return False return False
# 站点流控 # 站点流控
if self.sites.check(site_domain): check, checkmsg = self.sites.check(site_domain)
if check:
logger.warn(checkmsg)
self.fail += 1 self.fail += 1
return False return False
# 下载种子 # 下载种子

View File

@ -10,7 +10,6 @@ from apscheduler.triggers.cron import CronTrigger
from torrentool.torrent import Torrent from torrentool.torrent import Torrent
from app.core.config import settings from app.core.config import settings
from app.helper.sites import SitesHelper
from app.helper.torrent import TorrentHelper from app.helper.torrent import TorrentHelper
from app.log import logger from app.log import logger
from app.modules.qbittorrent import Qbittorrent from app.modules.qbittorrent import Qbittorrent
@ -46,7 +45,6 @@ class TorrentTransfer(_PluginBase):
_scheduler = None _scheduler = None
qb = None qb = None
tr = None tr = None
sites = None
torrent = None torrent = None
# 开关 # 开关
_enabled = False _enabled = False
@ -71,7 +69,6 @@ class TorrentTransfer(_PluginBase):
_torrent_tags = ["已整理", "转移做种"] _torrent_tags = ["已整理", "转移做种"]
def init_plugin(self, config: dict = None): def init_plugin(self, config: dict = None):
self.sites = SitesHelper()
self.torrent = TorrentHelper() self.torrent = TorrentHelper()
# 读取配置 # 读取配置
if config: if config: