support haidan index

This commit is contained in:
jxxghp
2024-06-26 09:08:18 +08:00
parent 9dcfb6dc1e
commit ad378956bf
2 changed files with 173 additions and 0 deletions

View File

@ -9,6 +9,7 @@ from app.db.sitestatistic_oper import SiteStatisticOper
from app.helper.sites import SitesHelper
from app.log import logger
from app.modules import _ModuleBase
from app.modules.indexer.haidan import HaiDanSpider
from app.modules.indexer.mtorrent import MTorrentSpider
from app.modules.indexer.spider import TorrentSpider
from app.modules.indexer.tnode import TNodeSpider
@ -118,6 +119,11 @@ class IndexerModule(_ModuleBase):
mtype=mtype,
page=page
)
elif site.get('parser') == "Haidan":
error_flag, result = HaiDanSpider(site).search(
keyword=search_word,
mtype=mtype
)
else:
error_flag, result = self.__spider_search(
search_word=search_word,