From f2f2a130ddb8dfe89ad482a0ccbf334106387ca0 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Mon, 12 Sep 2016 01:23:42 +0200 Subject: [PATCH] fixed webvtt to spec, there have to be at least 2 empty lines --- templates/chapters.srt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/chapters.srt b/templates/chapters.srt index 0ad04a0..0f2f3bc 100644 --- a/templates/chapters.srt +++ b/templates/chapters.srt @@ -2,10 +2,13 @@ WEBVTT + + {% for c in chapters|sort(attribute='start') %} {{ loop.index }} {# time format is 'minutes:seconds.ms' we expect full seconds #} {{ vtttime(c['start']) }} --> {{ vtttime(c['end']) }} {{ c['text'] }} +{% else $} {% endfor %} -- GitLab