Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 8, 2024
1 parent fe9fc76 commit 2620466
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ovos_plugin_manager/ocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 2620466

Please sign in to comment.