]> git.lizzy.rs Git - nhentai.git/commitdiff
Merge pull request #174 from Nontre12/fix-gen-main
authorRicter Zheng <RicterZheng@gmail.com>
Wed, 14 Oct 2020 17:47:51 +0000 (01:47 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 17:47:51 +0000 (01:47 +0800)
Fix change directory output_dir option on gen-main

MANIFEST.in
nhentai/command.py

index fdc3abce3fd5fd77dce4ed6a5732810685799813..c68172b10e0a9e6439947983d7b6508d7363d157 100644 (file)
@@ -6,3 +6,4 @@ include nhentai/viewer/scripts.js
 include nhentai/viewer/main.html
 include nhentai/viewer/main.css
 include nhentai/viewer/main.js
+include nhentai/viewer/logo.png
index 47fbc3c3fe9350e72169b057e75ddff048d77404..d0fce3dba577fb760b5343c1f4084c3dbf5c729c 100644 (file)
@@ -94,8 +94,11 @@ def main():
             elif options.is_pdf:
                 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)
+        elif options.main_viewer:
+            generate_main_html()
+
 
         if not platform.system() == 'Windows':
             logger.log(15, '🍻 All done.')