diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index 9e15359..2b87250 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -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) diff --git a/nhentai/command.py b/nhentai/command.py index 88a8c97..907ec29 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -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 = []