mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-07-02 00:19:29 +02:00
add timeout param
This commit is contained in:
@ -25,6 +25,8 @@ def cmd_parser():
|
|||||||
help='path which save the dojinshi')
|
help='path which save the dojinshi')
|
||||||
parser.add_option('--threads', '-t', type='int', dest='threads', action='store', default=1,
|
parser.add_option('--threads', '-t', type='int', dest='threads', action='store', default=1,
|
||||||
help='thread count of download dojinshi')
|
help='thread count of download dojinshi')
|
||||||
|
parser.add_option('--timeout', type='int', dest='timeout', action='store', default=30,
|
||||||
|
help='timeout of download dojinshi')
|
||||||
args, _ = parser.parse_args()
|
args, _ = parser.parse_args()
|
||||||
|
|
||||||
if args.ids:
|
if args.ids:
|
||||||
|
Reference in New Issue
Block a user