From 3556ac08ca198db5fd7b71e712d6fc7a02f16e38 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 15 Aug 2020 15:47:41 +0200 Subject: Don't process empty line when loading from file --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e1e16d1..3c41953 100644 --- a/main.py +++ b/main.py @@ -48,8 +48,9 @@ if args.file: urls = read_file(args.file) for url in urls: - dl_job = DlJob(url, args.output) - dl_job.run() + if url: + dl_job = DlJob(url, args.output) + dl_job.run() if not args.url and not args.update and not args.file: parser.print_help() -- cgit v1.2.1