diff options
| author | 2024-08-03 20:27:50 -0400 | |
|---|---|---|
| committer | 2024-08-03 20:27:50 -0400 | |
| commit | ad105563ff9e1e82b0714d9bf2de8e8247a96512 (patch) | |
| tree | 9ce5d2ef148ba3caad5171b79e7a7cd051977dd2 /gallery_dl/__init__.py | |
| parent | dd947614238f176637b2518ee24e588ca5920dea (diff) | |
| parent | 032e5bed275a253e122ed9ac86dac7b8c4204172 (diff) | |
Update upstream source from tag 'upstream/1.27.2'
Update to upstream version '1.27.2'
with Debian dir 30ac047f32a7127d1f2b2198647d93f92db9f287
Diffstat (limited to 'gallery_dl/__init__.py')
| -rw-r--r-- | gallery_dl/__init__.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 1d4215e..4b39c15 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -105,6 +105,11 @@ def main(): output.ANSI = True + # filter environment + filterenv = config.get((), "filters-environment", True) + if not filterenv: + util.compile_expression = util.compile_expression_raw + # format string separator separator = config.get((), "format-separator") if separator: @@ -145,6 +150,10 @@ def main(): log.debug("Configuration Files %s", config._files) + if args.print_traffic: + import requests + requests.packages.urllib3.connection.HTTPConnection.debuglevel = 1 + # extractor modules modules = config.get(("extractor",), "modules") if modules is not None: @@ -240,6 +249,9 @@ def main(): if config.get(("output",), "fallback", True): jobtype.handle_url = \ staticmethod(jobtype.handle_url_fallback) + elif args.dump_json: + jobtype = job.DataJob + jobtype.resolve = args.dump_json - 1 else: jobtype = args.jobtype or job.DownloadJob @@ -299,6 +311,8 @@ def main(): else: input_manager.success() + except exception.StopExtraction: + pass except exception.TerminateExtraction: pass except exception.RestartExtraction: |
