mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
fix --artist, --character, --parody, --group
This commit is contained in:
parent
d35190f9d0
commit
5552d39337
@ -28,6 +28,7 @@ def main():
|
|||||||
check_cookie()
|
check_cookie()
|
||||||
|
|
||||||
index = 0
|
index = 0
|
||||||
|
index_value = None
|
||||||
doujinshis = []
|
doujinshis = []
|
||||||
doujinshi_ids = []
|
doujinshi_ids = []
|
||||||
doujinshi_list = []
|
doujinshi_list = []
|
||||||
@ -43,18 +44,23 @@ def main():
|
|||||||
|
|
||||||
elif options.artist:
|
elif options.artist:
|
||||||
index = 1
|
index = 1
|
||||||
|
index_value = options.artist
|
||||||
|
|
||||||
elif options.character:
|
elif options.character:
|
||||||
index = 2
|
index = 2
|
||||||
|
index_value = options.character
|
||||||
|
|
||||||
elif options.parody:
|
elif options.parody:
|
||||||
index = 3
|
index = 3
|
||||||
|
index_value = options.parody
|
||||||
|
|
||||||
elif options.group:
|
elif options.group:
|
||||||
index = 4
|
index = 4
|
||||||
|
index_value = options.group
|
||||||
|
|
||||||
elif options.language:
|
elif options.language:
|
||||||
index = 5
|
index = 5
|
||||||
|
index_value = options.language
|
||||||
|
|
||||||
elif options.keyword:
|
elif options.keyword:
|
||||||
doujinshis = search_parser(options.keyword, sorting=options.sorting, page=options.page)
|
doujinshis = search_parser(options.keyword, sorting=options.sorting, page=options.page)
|
||||||
@ -63,7 +69,7 @@ def main():
|
|||||||
doujinshi_ids = options.id
|
doujinshi_ids = options.id
|
||||||
|
|
||||||
if index:
|
if index:
|
||||||
doujinshis = tag_parser(options.language, max_page=options.max_page, index=index)
|
doujinshis = tag_parser(index_value, max_page=options.max_page, index=index)
|
||||||
|
|
||||||
print_doujinshi(doujinshis)
|
print_doujinshi(doujinshis)
|
||||||
if options.is_download and doujinshis:
|
if options.is_download and doujinshis:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user