aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author50csent <32077344+50csent@users.noreply.github.com>2017-12-29 22:59:49 +0200
committerSergey M․ <dstftw@gmail.com>2017-12-30 05:56:47 +0700
commit2c8e11b4af253fec9096a800ccd26b4daef521a1 (patch)
tree4c53684ddba60a2ca1cd5c487e468af183b9dce4
parentd2c5b5a951868ae974bc3af6659ab39b8abd2157 (diff)
downloadyoutube-dl-2c8e11b4af253fec9096a800ccd26b4daef521a1.zip
youtube-dl-2c8e11b4af253fec9096a800ccd26b4daef521a1.tar.gz
youtube-dl-2c8e11b4af253fec9096a800ccd26b4daef521a1.tar.bz2
[pluralsight] Fix missing first line of subtitles (closes #11118)
-rw-r--r--youtube_dl/extractor/pluralsight.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py
index 597b112..aacc5d4 100644
--- a/youtube_dl/extractor/pluralsight.py
+++ b/youtube_dl/extractor/pluralsight.py
@@ -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(