mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 03:02:50 +01:00
27 lines
675 B
Python
27 lines
675 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright 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
|
|
# published by the Free Software Foundation.
|
|
|
|
"""Write metadata to JSON files"""
|
|
|
|
from .metadata import __postprocessor__ as MetadataPP
|
|
|
|
|
|
class Metadata_BypostPP(MetadataPP):
|
|
|
|
def __init__(self, pathfmt, options):
|
|
MetadataPP.__init__(self, pathfmt, options)
|
|
|
|
def prepare(self, pathfmt):
|
|
if pathfmt.kwdict.get("metadata_only"):
|
|
MetadataPP.run(self, pathfmt)
|
|
|
|
def run(self, pathfmt):
|
|
return
|
|
|
|
__postprocessor__ = Metadata_BypostPP
|