mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 18:31:24 +02:00
add default value of output dir
This commit is contained in:
parent
4ac161a38c
commit
d84b827241
@ -87,7 +87,7 @@ def cmd_parser():
|
|||||||
choices=['recent', 'popular', 'popular-today', 'popular-week'])
|
choices=['recent', 'popular', 'popular-today', 'popular-week'])
|
||||||
|
|
||||||
# download options
|
# download options
|
||||||
parser.add_option('--output', '-o', type='string', dest='output_dir', action='store', default='',
|
parser.add_option('--output', '-o', type='string', dest='output_dir', action='store', default='./',
|
||||||
help='output dir')
|
help='output dir')
|
||||||
parser.add_option('--threads', '-t', type='int', dest='threads', action='store', default=5,
|
parser.add_option('--threads', '-t', type='int', dest='threads', action='store', default=5,
|
||||||
help='thread count for downloading doujinshi')
|
help='thread count for downloading doujinshi')
|
||||||
|
@ -94,11 +94,8 @@ 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 and options.output_dir:
|
if options.main_viewer:
|
||||||
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.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user