mirror of
https://github.com/RicterZ/nhentai.git
synced 2026-04-18 23:05:33 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
360ea00bd9 |
@@ -1,3 +1,3 @@
|
|||||||
__version__ = '2.0.8'
|
__version__ = '2.0.9'
|
||||||
__author__ = 'RicterZ'
|
__author__ = 'RicterZ'
|
||||||
__email__ = 'ricterzheng@gmail.com'
|
__email__ = 'ricterzheng@gmail.com'
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
elif options.artist:
|
elif options.artist:
|
||||||
doujinshis = parser.search(
|
doujinshis = parser.artist(
|
||||||
f'artist:{options.artist}',
|
options.artist,
|
||||||
sorting=options.sorting,
|
sorting=options.sorting,
|
||||||
page=page_list,
|
page=page_list,
|
||||||
is_page_all=options.page_all,
|
is_page_all=options.page_all,
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ class BaseParser(ABC):
|
|||||||
@abstractmethod
|
@abstractmethod
|
||||||
def search(self, keyword: str, sorting: str = 'date', page=None, **kwargs) -> List[Dict]: ...
|
def search(self, keyword: str, sorting: str = 'date', page=None, **kwargs) -> List[Dict]: ...
|
||||||
|
|
||||||
|
def artist(self, artist_name: str, sorting: str = 'date', page=None, **kwargs) -> List[Dict]:
|
||||||
|
return self.search(f'artist:{artist_name}', sorting=sorting, page=page, **kwargs)
|
||||||
|
|
||||||
def favorites(self, page=None) -> List[Dict]:
|
def favorites(self, page=None) -> List[Dict]:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "doujinshi-dl"
|
name = "doujinshi-dl"
|
||||||
version = "2.0.8"
|
version = "2.0.9"
|
||||||
description = "doujinshi downloader"
|
description = "doujinshi downloader"
|
||||||
authors = ["Ricter Z <ricterzheng@gmail.com>"]
|
authors = ["Ricter Z <ricterzheng@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Reference in New Issue
Block a user