fix IYUUAutoSeed站点流控问题
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||||
# 下载种子
|
# 下载种子
|
||||||
|
@ -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:
|
||||||
|
Reference in New Issue
Block a user