aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-13 17:16:29 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-13 17:16:29 -0700
commit97545f9b3b74044f62c93baaff9ad32f9073d217 (patch)
tree1ed7c7591374bb4e042370091e224e8686965418 /youtube/watch.py
parent2ffc727b51255bbaffe1636a023eb9eb7ce1c19b (diff)
downloadyt-local-97545f9b3b74044f62c93baaff9ad32f9073d217.tar.lz
yt-local-97545f9b3b74044f62c93baaff9ad32f9073d217.tar.xz
yt-local-97545f9b3b74044f62c93baaff9ad32f9073d217.zip
add settings for enabling/disabling comments, comment avatars, & related vids
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 9d493af..c64efbc 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -314,7 +314,10 @@ def get_watch_page(query_string):
upload_day = info["upload_date"][6:8]
upload_date = upload_month + "/" + upload_day + "/" + upload_year
- related_videos_html = get_related_items_html(info)
+ if settings.enable_related_videos:
+ related_videos_html = get_related_items_html(info)
+ else:
+ related_videos_html = ''
page = yt_watch_template.substitute(
video_title = html.escape(info["title"]),