mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	fix --gen-main action
This commit is contained in:
		@@ -103,7 +103,7 @@ def cmd_parser():
 | 
				
			|||||||
        generate_html()
 | 
					        generate_html()
 | 
				
			||||||
        exit(0)
 | 
					        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()
 | 
					        generate_main_html()
 | 
				
			||||||
        exit(0)
 | 
					        exit(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,8 +16,13 @@ from nhentai.utils import generate_html, generate_cbz, generate_main_html
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
    banner()
 | 
					    banner()
 | 
				
			||||||
    logger.info('Using mirror: {0}'.format(BASE_URL))
 | 
					 | 
				
			||||||
    options = cmd_parser()
 | 
					    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_ids = []
 | 
				
			||||||
    doujinshi_list = []
 | 
					    doujinshi_list = []
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user