diff --git a/ovos_plugin_manager/ocp.py b/ovos_plugin_manager/ocp.py index 8f5b7bf2..f4e8ab91 100644 --- a/ovos_plugin_manager/ocp.py +++ b/ovos_plugin_manager/ocp.py @@ -96,6 +96,11 @@ def extract_stream(self, uri, video=True): @lru_cache() # to avoid loading StreamHandler more than once +def load_stream_extractors(): + return StreamHandler() + + def available_extractors(): + xtract = load_stream_extractors() return ["/", "http:", "https:", "file:"] + \ - [f"{sei}//" for sei in StreamHandler().supported_seis] + [f"{sei}//" for sei in xtract.supported_seis]