mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-05-02 07:40:39 +00:00
20 lines
499 B
Python
20 lines
499 B
Python
import pluggy
|
|
from changedetectionio.store import ChangeDetectionStore
|
|
|
|
hookspec = pluggy.HookspecMarker("eggsample")
|
|
|
|
|
|
@hookspec
|
|
def extra_processor():
|
|
"""Defines a new fetch method
|
|
|
|
:return: a tuples, (machine_name, description)
|
|
"""
|
|
|
|
@hookspec(firstresult=True)
|
|
def processor_call(processor_name: str, datastore: ChangeDetectionStore, watch_uuid: str):
|
|
"""
|
|
Call processors with processor name
|
|
:param processor_name: as defined in extra_processors
|
|
:return: data?
|
|
""" |