aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/__init__.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-06-22 22:30:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-06-22 22:30:36 -0400
commit32de2b06db501c7de81678bce8e3e0c3e63d340c (patch)
treefd58a26618a73de0faaf3e9c435a806aed7eced3 /gallery_dl/__init__.py
parent8a644b7a06c504263a478d3681eed10b4161b5be (diff)
New upstream version 1.18.0.upstream/1.18.0
Diffstat (limited to 'gallery_dl/__init__.py')
-rw-r--r--gallery_dl/__init__.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py
index 8154afc..d5893b7 100644
--- a/gallery_dl/__init__.py
+++ b/gallery_dl/__init__.py
@@ -6,23 +6,16 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
-from __future__ import unicode_literals, print_function
+import sys
+import json
+import logging
+from . import version, config, option, output, extractor, job, util, exception
__author__ = "Mike Fährmann"
__copyright__ = "Copyright 2014-2021 Mike Fährmann"
__license__ = "GPLv2"
__maintainer__ = "Mike Fährmann"
__email__ = "mike_faehrmann@web.de"
-
-import sys
-
-if sys.hexversion < 0x3040000:
- sys.exit("Python 3.4+ required")
-
-import json
-import logging
-from . import version, config, option, output, extractor, job, util, exception
-
__version__ = version.__version__
@@ -126,6 +119,8 @@ def main():
config.set((), "postprocessors", args.postprocessors)
if args.abort:
config.set((), "skip", "abort:" + str(args.abort))
+ if args.terminate:
+ config.set((), "skip", "terminate:" + str(args.terminate))
for opts in args.options:
config.set(*opts)