1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 05:17:28 +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:
50csent 2017-12-29 22:03:35 +02:00 committed by GitHub
parent bcb1c0a6ae
commit 9e198e794e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ class PluralsightIE(PluralsightBaseIE):
if start is None or text is None:
continue
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:
continue
srt += os.linesep.join(