MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / from_config

Method from_config

scenedetect/_cli/config.py:301–307  ·  view source on GitHub ↗
(config_value: str, default: "EscapedString")

Source from the content-addressed store, hash-verified

299
300 @staticmethod
301 def from_config(config_value: str, default: "EscapedString") -> "EscapedChar":
302 try:
303 return EscapedChar(config_value)
304 except (UnicodeDecodeError, UnicodeEncodeError) as ex:
305 raise OptionParseFailure(
306 "Value must be valid UTF-8 string with escape characters."
307 ) from ex
308
309
310class TimecodeFormat(Enum):

Callers

nothing calls this directly

Calls 2

EscapedCharClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected