diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-09-12 10:51:01 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-09-12 10:51:01 +0200 |
commit | 57978485ee80e13c6ac1a9f6377934be32c4c67a (patch) | |
tree | de08be49c7378c103b7a39c6c1698c68bd9dae68 /youtube/templates/watch.html | |
parent | 537a8e8ab585c003366d77c08380739243d39a42 (diff) | |
download | yt-local-57978485ee80e13c6ac1a9f6377934be32c4c67a.tar.lz yt-local-57978485ee80e13c6ac1a9f6377934be32c4c67a.tar.xz yt-local-57978485ee80e13c6ac1a9f6377934be32c4c67a.zip |
let jinja create the transcript <details> element
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r-- | youtube/templates/watch.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 13e0620..2bfed73 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -590,6 +590,20 @@ Reload without invidious (for usage of new identity button).</a> </div> {% endif %} + {% if subtitle_sources %} + <details id="transcript-box"> + <summary>Transcript</summary> + <div> + <select id="select-tt"> + {% for source in subtitle_sources %} + <option>{{ source['label'] }}</option> + {% endfor %} + </select> + <table id="transcript-table"></table> + </div> + </details> + {% endif %} + {% if settings.related_videos_mode != 0 %} <details class="related-videos-outer" {{'open' if settings.related_videos_mode == 1 else ''}}> <summary>Related Videos</summary> |