This commit is contained in:
jxxghp
2025-06-08 14:35:59 +08:00
parent 344abfa8d8
commit 3ee32757e5
9 changed files with 4 additions and 1218 deletions
-3
View File
@@ -24,7 +24,6 @@ from app.db.models.subscribe import Subscribe
from app.db.site_oper import SiteOper
from app.db.subscribe_oper import SubscribeOper
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.memory import memory_optimized
from app.helper.subscribe import SubscribeHelper
from app.helper.torrent import TorrentHelper
from app.log import logger
@@ -268,7 +267,6 @@ class SubscribeChain(ChainBase):
return True
return False
@memory_optimized(force_gc_after=True, log_memory=True)
def search(self, sid: Optional[int] = None, state: Optional[str] = 'N', manual: Optional[bool] = False):
"""
订阅搜索
@@ -540,7 +538,6 @@ class SubscribeChain(ChainBase):
return ret_sites
@memory_optimized(force_gc_after=True, log_memory=True)
def match(self, torrents: Dict[str, List[Context]]):
"""
从缓存中匹配订阅,并自动下载