projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[toggle] Style
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index ee20c3d9b29b3066d69d47abbc03b3c5b1faa725..5b396ede8dd97aa441b134edf57146c4b0ab07a7 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1982,9
+1982,9
@@
def parse_dfxp_time_expr(time_expr):
if mobj:
return float(mobj.group('time_offset'))
if mobj:
return float(mobj.group('time_offset'))
- mobj = re.match(r'^(\d+):(\d\d):(\d\d(?:
\.
\d+)?)$', time_expr)
+ mobj = re.match(r'^(\d+):(\d\d):(\d\d(?:
(?:\.|:)
\d+)?)$', time_expr)
if mobj:
if mobj:
- return 3600 * int(mobj.group(1)) + 60 * int(mobj.group(2)) + float(mobj.group(3))
+ return 3600 * int(mobj.group(1)) + 60 * int(mobj.group(2)) + float(mobj.group(3)
.replace(':', '.')
)
def srt_subtitles_timecode(seconds):
def srt_subtitles_timecode(seconds):