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

# Copyright 2018 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."""

from . import log


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

    def prepare(self, pathfmt):
        """ """

    def run(self, pathfmt):
        """Execute the postprocessor for a file"""

    def finalize(self):
        """Cleanup"""