mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-15 04:26:14 +00:00
WIP
This commit is contained in:
@@ -267,8 +267,11 @@ def get_fetcher_capabilities(watch, datastore):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Try to get from plugin-provided fetchers
|
# Try to get from plugin-provided fetchers
|
||||||
fetchers = collect_content_fetchers()
|
# Query all plugins for registered fetchers
|
||||||
for name, fetcher_class in fetchers:
|
plugin_fetchers = plugin_manager.hook.register_content_fetcher()
|
||||||
|
for fetcher_registration in plugin_fetchers:
|
||||||
|
if fetcher_registration:
|
||||||
|
name, fetcher_class = fetcher_registration
|
||||||
if name == fetcher_name:
|
if name == fetcher_name:
|
||||||
return {
|
return {
|
||||||
'supports_browser_steps': getattr(fetcher_class, 'supports_browser_steps', False),
|
'supports_browser_steps': getattr(fetcher_class, 'supports_browser_steps', False),
|
||||||
|
|||||||
Reference in New Issue
Block a user