aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-07-25 21:25:23 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-07-25 21:25:23 -0700
commite78d2393230875ac62c9fadb67c6676081b407c7 (patch)
tree74bbc15a0cfebb268fac51d9c2c6322ed66ef2fb /youtube/templates
parenta7ff3a52177e2fe03bb989f2959d1ce905f40109 (diff)
downloadyt-local-e78d2393230875ac62c9fadb67c6676081b407c7.tar.lz
yt-local-e78d2393230875ac62c9fadb67c6676081b407c7.tar.xz
yt-local-e78d2393230875ac62c9fadb67c6676081b407c7.zip
Add support for &t parameter
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/watch.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 4041144..01ae8cb 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -341,6 +341,11 @@ Reload without invidious (for usage of new identity button).</a>
{% endfor %}
</video>
+ {% if time_start != 0 %}
+ <script>
+ document.querySelector('video').currentTime = {{ time_start|tojson }};
+ </script>
+ {% endif %}
{% endif %}
<div class="video-info">