From ba0809b965fdf19190fc4a5f8ddee5f6ae9cb905 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 1 Aug 2019 00:28:51 -0700 Subject: rename enable_comments amd enable_related_videos --- youtube/comments.py | 2 +- youtube/watch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube') diff --git a/youtube/comments.py b/youtube/comments.py index 4485ad2..3b1ef86 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -221,7 +221,7 @@ def post_process_comments_info(comments_info): def video_comments(video_id, sort=0, offset=0, lc='', secret_key=''): - if settings.enable_comments: + if settings.comments_mode: comments_info = parse_comments_polymer(request_comments(make_comment_ctoken(video_id, sort, offset, lc, secret_key))) post_process_comments_info(comments_info) diff --git a/youtube/watch.py b/youtube/watch.py index e324115..5487dd4 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -170,7 +170,7 @@ def get_watch_page(): upload_day = info["upload_date"][6:8] upload_date = upload_month + "/" + upload_day + "/" + upload_year - if settings.enable_related_videos: + if settings.related_videos_mode: related_videos = get_related_items(info) else: related_videos = [] -- cgit v1.2.3