Added an additional channel for downloading the metadata of an entire post or gallery.

This commit is contained in:
Gio
2019-12-09 00:56:27 -06:00
parent f451be48c3
commit cfc70a97ab
5 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# -*- 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