File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
from typing import Optional
7
7
from videodb ._utils ._video import play_stream
8
- from videodb ._constants import VIDEO_DB_API
8
+ from videodb ._constants import VIDEO_DB_API , MediaType
9
9
from videodb .client import Connection
10
10
from videodb .exceptions import (
11
11
VideodbError ,
25
25
"InvalidRequestError" ,
26
26
"SearchError" ,
27
27
"play_stream" ,
28
+ "MediaType" ,
28
29
]
29
30
30
31
Original file line number Diff line number Diff line change 4
4
VIDEO_DB_API : str = "https://api.videodb.io"
5
5
6
6
7
+ class MediaType :
8
+ video = "video"
9
+ audio = "audio"
10
+
11
+
7
12
class SearchType :
8
13
semantic = "semantic"
9
14
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ def __repr__(self) -> str:
21
21
)
22
22
23
23
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