Use pathclass.glob.
This commit is contained in:
parent
4a9051e617
commit
02b254836f
1 changed files with 9 additions and 11 deletions
20
ffstreams.py
20
ffstreams.py
|
@ -126,17 +126,15 @@ def ffstreams(
|
||||||
subprocess.run(command, stderr=subprocess.STDOUT)
|
subprocess.run(command, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
def ffstreams_argparse(args):
|
def ffstreams_argparse(args):
|
||||||
for pattern in args.input_filename:
|
for input_file in pathclass.glob_many(args.input_filename):
|
||||||
for input_filename in winglob.glob(pattern):
|
ffstreams(
|
||||||
input_file = pathclass.Path(input_filename)
|
input_file,
|
||||||
ffstreams(
|
do_videos=args.videos,
|
||||||
input_file,
|
do_audios=args.audios,
|
||||||
do_videos=args.videos,
|
do_subtitles=args.subtitles,
|
||||||
do_audios=args.audios,
|
dry=args.dry,
|
||||||
do_subtitles=args.subtitles,
|
moveto=args.moveto,
|
||||||
dry=args.dry,
|
)
|
||||||
moveto=args.moveto,
|
|
||||||
)
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue