mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-03 18:50:53 +01:00 
			
		
		
		
	fix --gen-main action
This commit is contained in:
		@@ -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 = []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user