aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/common.py
blob: ef211e6e55978eaee873426be6413c3dcbb4697c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

# Copyright 2018-2020 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
# published by the Free Software Foundation.

"""Common classes and constants used by postprocessor modules."""


class PostProcessor():
    """Base class for postprocessors"""

    def __init__(self, job):
        name = self.__class__.__name__[:-2].lower()
        self.log = job.get_logger("postprocessor." + name)

    def __repr__(self):
        return self.__class__.__name__