add settings for enabling/disabling comments, comment avatars, & related vids

This commit is contained in:
James Taylor
2018-07-13 17:16:29 -07:00
parent 2ffc727b51
commit 97545f9b3b
4 changed files with 26 additions and 5 deletions

View File

@@ -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"]),