(
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,
)
| 157 | |
| 158 | |
| 159 | def 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 | ) |
no test coverage detected