From 83afe7eb1121234c75cab2b8749bd45e170cceb2 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 7 Jul 2018 01:04:48 -0700 Subject: fixed more comments not working --- youtube/comments.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'youtube/comments.py') diff --git a/youtube/comments.py b/youtube/comments.py index 695d18a..523a410 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -114,8 +114,8 @@ def parse_comments(content, replies=False): replies_url = '' if not replies: if comment_raw['replies'] is not None: - ctoken = comment_raw['replies']['continuations'][0]['continuation'] - comment_id, video_id = get_ids(ctoken) + reply_ctoken = comment_raw['replies']['continuations'][0]['continuation'] + comment_id, video_id = get_ids(reply_ctoken) replies_url = URL_ORIGIN + '/comments?parent_id=' + comment_id + "&video_id=" + video_id comment_raw = comment_raw['comment'] comment = { @@ -165,6 +165,7 @@ more_comments_template = Template('''