diff --git a/templates/chapters.srt b/templates/chapters.srt index 0ad04a0cc4c1b8c9aa541507984532a4d3ffbf14..0f2f3bca97db7e9c1e9a2a91840ecbd0a386009f 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 %}