diff options
author | neodarz <neodarz@neodarz.net> | 2020-08-15 15:47:41 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-08-15 15:47:41 +0200 |
commit | 3556ac08ca198db5fd7b71e712d6fc7a02f16e38 (patch) | |
tree | 1fa7a83bb4f54f731a74cf053472d840aaaef9bc | |
parent | 692cafdfc3ff928739c22cb39b3c6645c792edf2 (diff) | |
download | music_downloader-3556ac08ca198db5fd7b71e712d6fc7a02f16e38.tar.xz music_downloader-3556ac08ca198db5fd7b71e712d6fc7a02f16e38.zip |
Don't process empty line when loading from file
-rw-r--r-- | main.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() |