mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 18:31:24 +02:00
fix --gen-main action
This commit is contained in:
parent
f10ae3cf58
commit
0935d609c3
@ -103,7 +103,7 @@ def cmd_parser():
|
||||
generate_html()
|
||||
exit(0)
|
||||
|
||||
if args.main_viewer:
|
||||
if args.main_viewer and not args.favorites and args.id is None and not args.is_download:
|
||||
generate_main_html()
|
||||
exit(0)
|
||||
|
||||
|
@ -16,8 +16,13 @@ from nhentai.utils import generate_html, generate_cbz, generate_main_html
|
||||
|
||||
def main():
|
||||
banner()
|
||||
logger.info('Using mirror: {0}'.format(BASE_URL))
|
||||
options = cmd_parser()
|
||||
logger.info('Using mirror: {0}'.format(BASE_URL))
|
||||
|
||||
from nhentai.constant import PROXY
|
||||
# constant.PROXY will be changed after cmd_parser()
|
||||
if PROXY != {}:
|
||||
logger.info('Using proxy: {0}'.format(PROXY))
|
||||
|
||||
doujinshi_ids = []
|
||||
doujinshi_list = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user