From 97545f9b3b74044f62c93baaff9ad32f9073d217 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 13 Jul 2018 17:16:29 -0700 Subject: add settings for enabling/disabling comments, comment avatars, & related vids --- youtube/watch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'youtube/watch.py') 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"]), -- cgit v1.2.3