aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-10-05 10:13:54 +0800
committerJesús <heckyel@hyperbola.info>2022-10-05 10:14:06 +0800
commitc524eb16e5fbe30dcd217fa8ba2ccd7acaaa2cf4 (patch)
tree465e68a1ba25f31dea15a808c4e0a8fea70eef8f /youtube
parent6ba3959e40ca6077ea95bac65932bf18b8782410 (diff)
downloadyt-local-c524eb16e5fbe30dcd217fa8ba2ccd7acaaa2cf4.tar.lz
yt-local-c524eb16e5fbe30dcd217fa8ba2ccd7acaaa2cf4.tar.xz
yt-local-c524eb16e5fbe30dcd217fa8ba2ccd7acaaa2cf4.zip
Disable download by RIAA issues
Ref: https://torrentfreak.com/riaa-thwarts-youts-attempt-to-declare-youtube-ripping-legal-221002/ Archive: https://archive.ph/OZQbN
Diffstat (limited to 'youtube')
-rw-r--r--youtube/templates/settings.html4
-rw-r--r--youtube/templates/watch.html4
2 files changed, 6 insertions, 2 deletions
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) %}
<li class="setting-item">
{% if 'label' is in(setting_info) %}
- <label for="{{ 'setting_' + setting_name }}">{{ setting_info['label'] }}</label>
+ <label for="{{ 'setting_' + setting_name }}" {% if 'comment' is in(setting_info) %}title="{{ setting_info['comment'] }}" {% endif %}>{{ setting_info['label'] }}</label>
{% else %}
- <label for="{{ 'setting_' + setting_name }}">{{ setting_name.replace('_', ' ')|capitalize }}</label>
+ <label for="{{ 'setting_' + setting_name }}" {% if 'comment' is in(setting_info) %}title="{{ setting_info['comment'] }}" {% endif %}>{{ setting_name.replace('_', ' ')|capitalize }}</label>
{% 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 @@
<span class="v-direct-link"><a href="https://youtu.be/{{ video_id }}" rel="noopener noreferrer" target="_blank">Direct Link</a></span>
+ {% if settings.use_video_download != 0 %}
<details class="v-download">
<summary class="download-dropdown-label">Download</summary>
<ul class="download-dropdown-content">
@@ -116,6 +117,9 @@
{% endfor %}
</ul>
</details>
+ {% else %}
+ <span class="v-download"></span>
+ {% endif %}
<span class="v-description">{{ common_elements.text_runs(description)|escape|urlize|timestamps|safe }}</span>
<div class="v-music-list">