mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2026-05-03 04:03:30 +00:00
+2
-2
@@ -1982,9 +1982,9 @@ def parse_dfxp_time_expr(time_expr):
|
||||
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:
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user