Skip to content

Commit cc0cbef

Browse files
committed
fix: SceneExtractionType
1 parent 7036ece commit cc0cbef

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

videodb/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from videodb._utils._video import play_stream
88
from videodb._constants import (
99
VIDEO_DB_API,
10+
SceneExtractionType,
1011
MediaType,
1112
SearchType,
1213
SubtitleAlignment,
@@ -39,6 +40,7 @@
3940
"SubtitleBorderStyle",
4041
"SubtitleStyle",
4142
"TextStyle",
43+
"SceneExtractionType",
4244
]
4345

4446

videodb/_constants.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ class IndexType:
2323

2424

2525
class SceneExtractionType:
26-
scene = "scene"
27-
time_based = "time_based"
28-
compression_based = "compression_based"
26+
scene_based = "scene"
27+
time_based = "time"
2928

3029

3130
class Workflows:

videodb/video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _format_scene_collection(self, collection_data: dict) -> SceneCollection:
208208

209209
def extract_scenes(
210210
self,
211-
extraction_type: SceneExtractionType = SceneExtractionType.scene,
211+
extraction_type: SceneExtractionType = SceneExtractionType.scene_based,
212212
extraction_config: dict = {},
213213
force: bool = False,
214214
callback_url: str = None,
@@ -243,7 +243,7 @@ def delete_scene_collection(self, collection_id: str) -> None:
243243

244244
def index_scenes(
245245
self,
246-
extraction_type: SceneExtractionType = SceneExtractionType.scene,
246+
extraction_type: SceneExtractionType = SceneExtractionType.scene_based,
247247
extraction_config: dict = {},
248248
prompt: str = None,
249249
scenes: List[Scene] = [],

0 commit comments

Comments
 (0)