From a7ea4925794983794a417ec30ec677b38fb7cf1f Mon Sep 17 00:00:00 2001 From: girst Date: Mon, 30 Aug 2021 07:40:47 +0200 Subject: [PATCH] add method to allow downloading though yt-dlp https://github.com/iv-org/invidious/pull/1730 https://github.com/yt-dlp/yt-dlp/commit/df0c81513e0bb37986d00c532a5ad8cef31a24ea --- app/templates/base.html.j2 | 1 + app/youtube/templates/watch.html.j2 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 177afcd..52b8100 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -5,6 +5,7 @@ {% endblock %} +{%block more_head %}{% endblock %} {% import 'macros.imp.j2' as macros %} diff --git a/app/youtube/templates/watch.html.j2 b/app/youtube/templates/watch.html.j2 index 4347d28..21c7fb1 100644 --- a/app/youtube/templates/watch.html.j2 +++ b/app/youtube/templates/watch.html.j2 @@ -2,6 +2,10 @@ {% import 'macros.imp.j2' as macros %} {% block title %}{{ title | e }} — {{ author | e }}{% endblock %} +{% block more_head %} +{# Note: the following line was adopted from invidious and is parsed as a regex by yt-dlp. Do not modify! #} + +{% endblock %} {% block content %} {% if video_url %} -- 2.39.3