mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 18:31:24 +02:00
fixing identation
This commit is contained in:
parent
147eec57cf
commit
f2573d5f10
@ -47,6 +47,8 @@ nhentai --login "username:password" --download
|
||||
`--timeout`:指定下载图片的超时时间,默认为 30 秒。
|
||||
`--proxy`:指定下载的代理,例如: http://127.0.0.1:8080/
|
||||
`--login`:nhentai 账号的“用户名:密码”组合
|
||||
`--nohtml`:nhentai Don't generate HTML
|
||||
`--cbz`:nhentai Generate Comic Book CBZ file
|
||||
|
||||
### nHentai Mirror
|
||||
如果想用自建镜像下载 nhentai 的本子,需要搭建 nhentai.net 和 i.nhentai.net 的反向代理。
|
||||
|
@ -60,7 +60,7 @@ def cmd_parser():
|
||||
help='Don\'t generate HTML')
|
||||
|
||||
parser.add_option('--cbz', dest='is_cbz', action='store_true',
|
||||
help='Generate ComicBook CBZ File')
|
||||
help='Generate Comic Book CBZ File')
|
||||
|
||||
try:
|
||||
sys.argv = list(map(lambda x: unicode(x.decode(sys.stdin.encoding)), sys.argv))
|
||||
|
@ -48,7 +48,7 @@ def main():
|
||||
doujinshi.downloader = downloader
|
||||
doujinshi.download()
|
||||
if not options.is_nohtml and not options.is_cbz:
|
||||
generate_html(options.output_dir, doujinshi)
|
||||
generate_html(options.output_dir, doujinshi)
|
||||
elif options.is_cbz:
|
||||
generate_cbz(options.output_dir, doujinshi)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user