Replace clipext.resolve with pipeable.input(split_lines=False).
This commit is contained in:
parent
7417d8a45f
commit
6329b466ec
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import traceback
|
||||||
|
|
||||||
from voussoirkit import bytestring
|
from voussoirkit import bytestring
|
||||||
from voussoirkit import downloady
|
from voussoirkit import downloady
|
||||||
from voussoirkit import clipext
|
from voussoirkit import pipeable
|
||||||
|
|
||||||
DEFAULT_PIECE_SIZE = bytestring.MIBIBYTE
|
DEFAULT_PIECE_SIZE = bytestring.MIBIBYTE
|
||||||
DEFAULT_THREAD_COUNT = 10
|
DEFAULT_THREAD_COUNT = 10
|
||||||
|
@ -134,7 +134,7 @@ def init_argparse(args):
|
||||||
piece_size = bytestring.parsebytes(args.piece_size)
|
piece_size = bytestring.parsebytes(args.piece_size)
|
||||||
else:
|
else:
|
||||||
piece_size = args.piece_size
|
piece_size = args.piece_size
|
||||||
url = clipext.resolve(args.url)
|
url = pipeable.input(args.url, split_lines=False)
|
||||||
init(url, localname=args.localname, piece_size=piece_size)
|
init(url, localname=args.localname, piece_size=piece_size)
|
||||||
|
|
||||||
def reset_argparse(args):
|
def reset_argparse(args):
|
||||||
|
|
Loading…
Reference in a new issue