mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
add return value to 'PostProcessor._init_archive()'
This commit is contained in:
parent
7cd5130e88
commit
6c9432165e
@ -45,5 +45,7 @@ class PostProcessor():
|
||||
self.name, archive, exc.__class__.__name__, exc)
|
||||
else:
|
||||
self.log.debug("Using %s archive '%s'", self.name, archive)
|
||||
return True
|
||||
else:
|
||||
self.archive = None
|
||||
return False
|
||||
|
@ -22,8 +22,7 @@ class PythonPP(PostProcessor):
|
||||
module = util.import_file(module_name)
|
||||
self.function = getattr(module, function_name)
|
||||
|
||||
self._init_archive(job, options)
|
||||
if self.archive:
|
||||
if self._init_archive(job, options):
|
||||
self.run = self.run_archive
|
||||
|
||||
events = options.get("event")
|
||||
|
Loading…
Reference in New Issue
Block a user