MCPcopy Create free account
hub / github.com/smacke/ffsubsync / make_subtitle_parser

Function make_subtitle_parser

ffsubsync/subtitle_parser.py:159–175  ·  view source on GitHub ↗
(
    fmt: str,
    encoding: str = DEFAULT_ENCODING,
    caching: bool = False,
    max_subtitle_seconds: int = DEFAULT_MAX_SUBTITLE_SECONDS,
    start_seconds: int = DEFAULT_START_SECONDS,
    **kwargs: Any,
)

Source from the content-addressed store, hash-verified

157
158
159def make_subtitle_parser(
160 fmt: str,
161 encoding: str = DEFAULT_ENCODING,
162 caching: bool = False,
163 max_subtitle_seconds: int = DEFAULT_MAX_SUBTITLE_SECONDS,
164 start_seconds: int = DEFAULT_START_SECONDS,
165 **kwargs: Any,
166) -> GenericSubtitleParser:
167 return GenericSubtitleParser(
168 fmt=fmt,
169 encoding=encoding,
170 caching=caching,
171 max_subtitle_seconds=max_subtitle_seconds,
172 start_seconds=start_seconds,
173 skip_ssa_info=kwargs.get("skip_ssa_info", False),
174 strict=kwargs.get("strict", False),
175 )

Callers 2

get_srt_pipe_makerFunction · 0.90

Calls 1

Tested by

no test coverage detected