1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

improve output of active post processor modules

This commit is contained in:
Mike Fährmann 2019-08-15 13:31:04 +02:00
parent 2cbbc3dec4
commit 5f8621b29d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 12 additions and 5 deletions

View File

@ -336,7 +336,8 @@ class DownloadJob(Job):
postprocessors = self.extractor.config("postprocessors")
if postprocessors:
self.postprocessors = []
pp_list = []
for pp_dict in postprocessors:
whitelist = pp_dict.get("whitelist")
blacklist = pp_dict.get("blacklist")
@ -355,9 +356,12 @@ class DownloadJob(Job):
"'%s' initialization failed: %s: %s",
name, exc.__class__.__name__, exc)
else:
self.postprocessors.append(pp_obj)
self.extractor.log.debug(
"Active postprocessor modules: %s", self.postprocessors)
pp_list.append(pp_obj)
if pp_list:
self.postprocessors = pp_list
self.extractor.log.debug(
"Active postprocessor modules: %s", pp_list)
class SimulationJob(DownloadJob):

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Mike Fährmann
# Copyright 2018-2019 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@ -23,3 +23,6 @@ class PostProcessor():
def finalize(self):
"""Cleanup"""
def __repr__(self):
return self.__class__.__name__