From 2ec1283ba85c6400f05d113d3880f6f2c0c542f8 Mon Sep 17 00:00:00 2001 From: Nontre12 <62849884+Nontre12@users.noreply.github.com> Date: Wed, 14 Oct 2020 12:02:57 +0200 Subject: [PATCH 1/2] Fix change directory output_dir option on gen-main --- nhentai/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nhentai/command.py b/nhentai/command.py index 47fbc3c..d0fce3d 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -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.') From 648b6f87bf948cdef2fe00ba01eac899f04907cf Mon Sep 17 00:00:00 2001 From: Nontre12 <62849884+Nontre12@users.noreply.github.com> Date: Wed, 14 Oct 2020 12:09:39 +0200 Subject: [PATCH 2/2] Added logo.png to the installation --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index fdc3abc..c68172b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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