rename download.py
This commit is contained in:
@@ -17,7 +17,7 @@ __email__ = "mike_faehrmann@web.de"
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
from . import config, download
|
from . import config, jobs
|
||||||
|
|
||||||
def parse_cmdline_options():
|
def parse_cmdline_options():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
@@ -53,10 +53,8 @@ def main():
|
|||||||
config.set(key.split("."), value)
|
config.set(key.split("."), value)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
pass
|
||||||
dlmgr = download.DownloadManager(args)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for url in args.urls:
|
for url in args.urls:
|
||||||
dlmgr.add(url)
|
jobs.DownloadJob(url).run()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\nKeyboardInterrupt")
|
print("\nKeyboardInterrupt")
|
||||||
|
|||||||
Reference in New Issue
Block a user