File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 55
66from typing import Optional
77from videodb ._utils ._video import play_stream
8- from videodb ._constants import VIDEO_DB_API
8+ from videodb ._constants import VIDEO_DB_API , MediaType
99from videodb .client import Connection
1010from videodb .exceptions import (
1111 VideodbError ,
2525 "InvalidRequestError" ,
2626 "SearchError" ,
2727 "play_stream" ,
28+ "MediaType" ,
2829]
2930
3031
Original file line number Diff line number Diff line change 44VIDEO_DB_API : str = "https://api.videodb.io"
55
66
7+ class MediaType :
8+ video = "video"
9+ audio = "audio"
10+
11+
712class SearchType :
813 semantic = "semantic"
914
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ def __repr__(self) -> str:
2121 )
2222
2323 def delete (self ) -> None :
24- self ._connection .delete (f"{ ApiPath .AUDIO } /{ self .id } " )
24+ self ._connection .delete (f"{ ApiPath .audio } /{ self .id } " )
You can’t perform that action at this time.
0 commit comments