mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 05:38:29 +03:00
More manifests, base modules and rename from archiver to extractor.
This commit is contained in:
9
src/auto_archiver/modules/mute_formatter/__manifest__.py
Normal file
9
src/auto_archiver/modules/mute_formatter/__manifest__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
m = {
|
||||
"name": "Mute Formatter",
|
||||
"type": ["formatter"],
|
||||
"requires_setup": False,
|
||||
"external_dependencies": {
|
||||
},
|
||||
"description": """ Default formatter.
|
||||
""",
|
||||
}
|
||||
16
src/auto_archiver/modules/mute_formatter/mute_formatter.py
Normal file
16
src/auto_archiver/modules/mute_formatter/mute_formatter.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
|
||||
from ..core import Metadata, Media
|
||||
from . import Formatter
|
||||
|
||||
|
||||
@dataclass
|
||||
class MuteFormatter(Formatter):
|
||||
name = "mute_formatter"
|
||||
|
||||
def __init__(self, config: dict) -> None:
|
||||
# without this STEP.__init__ is not called
|
||||
super().__init__(config)
|
||||
|
||||
def format(self, item: Metadata) -> Media: return None
|
||||
Reference in New Issue
Block a user