aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
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"]),