mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 11:07:15 +08:00
Update for requested change #11118
In case the first subtitle phrase starts at negative time, and the second subtitle phrase starts at 0.0 -- the first subtitle phrase would be skipped. This fix/update prevents that.
This commit is contained in:
parent
bcb1c0a6ae
commit
9e198e794e
@ -176,7 +176,7 @@ class PluralsightIE(PluralsightBaseIE):
|
|||||||
if start is None or text is None:
|
if start is None or text is None:
|
||||||
continue
|
continue
|
||||||
end = duration if num == len(subs) - 1 else float_or_none(
|
end = duration if num == len(subs) - 1 else float_or_none(
|
||||||
dict_get(subs[num + 1], TIME_OFFSET_KEYS))
|
dict_get(subs[num + 1], TIME_OFFSET_KEYS, skip_false_values=False))
|
||||||
if end is None:
|
if end is None:
|
||||||
continue
|
continue
|
||||||
srt += os.linesep.join(
|
srt += os.linesep.join(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user