diff --git a/settings.py b/settings.py index 540d3f7..16ec6ff 100644 --- a/settings.py +++ b/settings.py @@ -220,6 +220,20 @@ For security reasons, enabling this is not recommended.''', 'category': 'interface', }), + ('use_video_download', { + 'type': int, + 'default': 0, + 'comment': '', + 'options': [ + (0, 'Disabled'), + (1, 'Enabled'), + ], + 'category': 'interface', + 'comment': '''If enabled, you may incur legal issues with RIAA. Disabled by default. +More info: https://torrentfreak.com/riaa-thwarts-youts-attempt-to-declare-youtube-ripping-legal-221002/ +Archive: https://archive.ph/OZQbN''', + }), + ('proxy_images', { 'label': 'Route images', 'type': bool, diff --git a/youtube/templates/settings.html b/youtube/templates/settings.html index 7a7ce9e..cb2b3cd 100644 --- a/youtube/templates/settings.html +++ b/youtube/templates/settings.html @@ -13,9 +13,9 @@ {% if not setting_info.get('hidden', false) %}
  • {% if 'label' is in(setting_info) %} - + {% else %} - + {% endif %} {% if setting_info['type'].__name__ == 'bool' %} diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 383d7cb..dc0b6ce 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -97,6 +97,7 @@ Direct Link + {% if settings.use_video_download != 0 %}
    Download
    + {% else %} + + {% endif %} {{ common_elements.text_runs(description)|escape|urlize|timestamps|safe }}