aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.py5
1 files 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()