Skip to content

Commit c860321

Browse files
committed
refactor: fix typos
1 parent 0944f0d commit c860321

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ collection = conn.get_collection()
113113
# get the video from the collection
114114
video = collection.get_video("video_id")
115115

116-
# index the video for symantic search
116+
# index the video for semantic search
117117
video.index_spoken_words()
118118

119119
# search relevant moment in video and stream resultant video clip instantly.

videodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55

66
from typing import Optional
7-
from videodb._utils.video import play_hls
7+
from videodb._utils._video import play_hls
88
from videodb._constants import VIDEO_DB_API
99
from videodb.client import Connection
1010
from videodb.exceptions import (
File renamed without changes.

videodb/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABC, abstractmethod
2-
from videodb._utils.video import play_hls
2+
from videodb._utils._video import play_hls
33
from videodb._constants import (
44
SearchType,
55
ApiPath,

videodb/shot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
from typing import Optional
5-
from videodb._utils.video import play_hls
5+
from videodb._utils._video import play_hls
66
from videodb._constants import (
77
ApiPath,
88
)
@@ -72,7 +72,7 @@ def generate_stream(self) -> str:
7272
return self.stream_url
7373

7474
def play(self) -> str:
75-
"""Generate a stream url for the shot and open it in the default browser
75+
"""Generate a stream url for the shot and open it in the default browser/ notebook
7676
7777
:return: The stream url
7878
:rtype: str

videodb/video.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Optional
2-
from videodb._utils.video import play_hls
2+
from videodb._utils._video import play_hls
33
from videodb._constants import (
44
ApiPath,
55
SearchType,
@@ -114,7 +114,7 @@ def get_transcript_text(self, force: bool = False) -> str:
114114
return self.transcript_text
115115

116116
def index_spoken_words(self) -> None:
117-
"""Symantic indexing of spoken words in the video
117+
"""Semantic indexing of spoken words in the video
118118
119119
:raises InvalidRequestError: If the video is already indexed
120120
:return: None if the indexing is successful
@@ -182,4 +182,4 @@ def play(self) -> str:
182182
:return: The stream url
183183
:rtype: str
184184
"""
185-
return play_hls(self.player_url)
185+
return play_hls(self.stream_url)

0 commit comments

Comments
 (0)