From 02b254836fd2260f8722db281de43f79312efc85 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 30 Sep 2021 19:20:08 -0700 Subject: [PATCH] Use pathclass.glob. --- ffstreams.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/ffstreams.py b/ffstreams.py index e32ba37..6eba753 100644 --- a/ffstreams.py +++ b/ffstreams.py @@ -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