Use pathclass.glob.

This commit is contained in:
voussoir 2021-09-30 19:20:08 -07:00
parent 4a9051e617
commit 02b254836f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -126,17 +126,15 @@ def ffstreams(
subprocess.run(command, stderr=subprocess.STDOUT)
def ffstreams_argparse(args):
for pattern in args.input_filename:
for input_filename in winglob.glob(pattern):
input_file = pathclass.Path(input_filename)
ffstreams(
input_file,
do_videos=args.videos,
do_audios=args.audios,
do_subtitles=args.subtitles,
dry=args.dry,
moveto=args.moveto,
)
for input_file in pathclass.glob_many(args.input_filename):
ffstreams(
input_file,
do_videos=args.videos,
do_audios=args.audios,
do_subtitles=args.subtitles,
dry=args.dry,
moveto=args.moveto,
)
return 0