mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	Merge pull request #174 from Nontre12/fix-gen-main
Fix change directory output_dir option on gen-main
This commit is contained in:
		@@ -6,3 +6,4 @@ include nhentai/viewer/scripts.js
 | 
				
			|||||||
include nhentai/viewer/main.html
 | 
					include nhentai/viewer/main.html
 | 
				
			||||||
include nhentai/viewer/main.css
 | 
					include nhentai/viewer/main.css
 | 
				
			||||||
include nhentai/viewer/main.js
 | 
					include nhentai/viewer/main.js
 | 
				
			||||||
 | 
					include nhentai/viewer/logo.png
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,8 +94,11 @@ def main():
 | 
				
			|||||||
            elif options.is_pdf:
 | 
					            elif options.is_pdf:
 | 
				
			||||||
                generate_pdf(options.output_dir, doujinshi, options.rm_origin_dir)
 | 
					                generate_pdf(options.output_dir, doujinshi, options.rm_origin_dir)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if options.main_viewer:
 | 
					        if options.main_viewer and options.output_dir:
 | 
				
			||||||
            generate_main_html(options.output_dir)
 | 
					            generate_main_html(options.output_dir)
 | 
				
			||||||
 | 
					        elif options.main_viewer:
 | 
				
			||||||
 | 
					            generate_main_html()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not platform.system() == 'Windows':
 | 
					        if not platform.system() == 'Windows':
 | 
				
			||||||
            logger.log(15, '🍻 All done.')
 | 
					            logger.log(15, '🍻 All done.')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user