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

Method from_config

scenedetect/_cli/config.py:90–96  ·  view source on GitHub ↗
(config_value: str, default: "TimecodeValue")

Source from the content-addressed store, hash-verified

88
89 @staticmethod
90 def from_config(config_value: str, default: "TimecodeValue") -> "TimecodeValue":
91 try:
92 return TimecodeValue(config_value)
93 except ValueError as ex:
94 raise OptionParseFailure(
95 "Timecodes must be in seconds (100.0), frames (100), or HH:MM:SS."
96 ) from ex
97
98
99class RangeValue(ValidatedValue):

Callers

nothing calls this directly

Calls 2

TimecodeValueClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected