add '"skip": "terminate"' option

Stops not only the current extractor/job,
but all parent extractors/jobs as well.
This commit is contained in:
Mike Fährmann
2021-05-12 02:22:28 +02:00
parent 4835888acc
commit c693db5b1a
6 changed files with 22 additions and 4 deletions

View File

@@ -249,6 +249,8 @@ def main():
retval |= jobtype(url.value).run()
else:
retval |= jobtype(url).run()
except exception.TerminateExtraction:
pass
except exception.NoExtractorError:
log.error("No suitable extractor found for '%s'", url)
retval |= 64