1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

rename download.py

This commit is contained in:
Mike Fährmann 2015-11-12 03:28:01 +01:00
parent 47f016a016
commit db113bd87d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 2 additions and 4 deletions

View File

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