]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pluralsight] Fix missing first line of subtitles (closes #11118)
author50csent <32077344+50csent@users.noreply.github.com>
Fri, 29 Dec 2017 20:59:49 +0000 (22:59 +0200)
committerSergey M․ <dstftw@gmail.com>
Fri, 29 Dec 2017 22:56:47 +0000 (05:56 +0700)
youtube_dl/extractor/pluralsight.py

index 597b11218394b6c034ef60608ddbb2ab60c0d656..aacc5d4bb8a8c139b354be7f724612c308bfc6c5 100644 (file)
@@ -171,12 +171,12 @@ class PluralsightIE(PluralsightBaseIE):
         for num, current in enumerate(subs):
             current = subs[num]
             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))
             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(