[pluralsight] Fix missing first line of subtitles (closes #11118)
parent
d2c5b5a951
commit
2c8e11b4af
|
@ -171,12 +171,12 @@ class PluralsightIE(PluralsightBaseIE):
|
||||||
for num, current in enumerate(subs):
|
for num, current in enumerate(subs):
|
||||||
current = subs[num]
|
current = subs[num]
|
||||||
start, text = (
|
start, text = (
|
||||||
float_or_none(dict_get(current, TIME_OFFSET_KEYS)),
|
float_or_none(dict_get(current, TIME_OFFSET_KEYS, skip_false_values=False)),
|
||||||
dict_get(current, TEXT_KEYS))
|
dict_get(current, TEXT_KEYS))
|
||||||
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…
Reference in New Issue