aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-08-15 15:47:41 +0200
committerneodarz <neodarz@neodarz.net>2020-08-15 15:47:41 +0200
commit3556ac08ca198db5fd7b71e712d6fc7a02f16e38 (patch)
tree1fa7a83bb4f54f731a74cf053472d840aaaef9bc
parent692cafdfc3ff928739c22cb39b3c6645c792edf2 (diff)
downloadmusic_downloader-3556ac08ca198db5fd7b71e712d6fc7a02f16e38.tar.xz
music_downloader-3556ac08ca198db5fd7b71e712d6fc7a02f16e38.zip
Don't process empty line when loading from file
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()