Spaces:
Runtime error
Runtime error
bayartsogt
commited on
Commit
•
5e39020
1
Parent(s):
5673c7d
timecode from sbv to srt
Browse files
utils.py
CHANGED
@@ -8,7 +8,7 @@ def second_to_timecode(x: float) -> str:
|
|
8 |
second, x = divmod(x, 1)
|
9 |
millisecond = int(x * 1000.)
|
10 |
|
11 |
-
return '%.
|
12 |
|
13 |
|
14 |
def download_from_youtube(youtube_link: str) -> str:
|
|
|
8 |
second, x = divmod(x, 1)
|
9 |
millisecond = int(x * 1000.)
|
10 |
|
11 |
+
return '%.2d:%.2d:%.2d,%.3d' % (hour, minute, second, millisecond)
|
12 |
|
13 |
|
14 |
def download_from_youtube(youtube_link: str) -> str:
|