From eff2cefce8f04c65ff363bea5c0e8c0a23c32e61 Mon Sep 17 00:00:00 2001 From: adogecheems Date: Wed, 28 Aug 2024 21:51:30 +0800 Subject: [PATCH] bug fixed --- anisearch/plugins/tokyotosho.py | 1 - anisearch/search/AniSearch.py | 4 +++- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/anisearch/plugins/tokyotosho.py b/anisearch/plugins/tokyotosho.py index 320fa1d..d2b7ebe 100644 --- a/anisearch/plugins/tokyotosho.py +++ b/anisearch/plugins/tokyotosho.py @@ -70,5 +70,4 @@ def search(self, keyword: str, collected: bool = False, proxies: Optional[dict] log.error(f"Error occurred while processing page {page}: {e}") break - log.info(f"This search is complete: {keyword}") return animes diff --git a/anisearch/search/AniSearch.py b/anisearch/search/AniSearch.py index 27900e6..2e5efbb 100644 --- a/anisearch/search/AniSearch.py +++ b/anisearch/search/AniSearch.py @@ -61,7 +61,7 @@ def reset(self) -> None: self.if_selected: Optional[bool] = False def search(self, keyword: str, collected: Optional[bool] = None, proxies: Optional[dict] = None, - system_proxy: Optional[bool] = None) -> None: + system_proxy: Optional[bool] = None, **extra_options) -> None: """ Search for anime using the given keyword. @@ -79,6 +79,8 @@ def search(self, keyword: str, collected: Optional[bool] = None, proxies: Option kwargs['proxies'] = proxies if system_proxy is not None: kwargs['system_proxy'] = system_proxy + if extra_options is not None: + kwargs = {**kwargs, **extra_options} try: self.animes = self.plugin.search(**kwargs) diff --git a/setup.py b/setup.py index 6009e47..a90599f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='Anisearch-lib', - version='1.3.0', + version='1.3.1', packages=find_packages(exclude=['tests*']), install_requires=requirements, entry_points={