aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-07 01:04:48 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-07 01:04:48 -0700
commit83afe7eb1121234c75cab2b8749bd45e170cceb2 (patch)
treee033c56fca7ab6aacb54d40a4cf1033e49e95773 /youtube/comments.py
parent666456146d1fd7bb73273e12d6294525511edf9a (diff)
downloadyt-local-83afe7eb1121234c75cab2b8749bd45e170cceb2.tar.lz
yt-local-83afe7eb1121234c75cab2b8749bd45e170cceb2.tar.xz
yt-local-83afe7eb1121234c75cab2b8749bd45e170cceb2.zip
fixed more comments not working
Diffstat (limited to 'youtube/comments.py')
-rw-r--r--youtube/comments.py5
1 files changed, 3 insertions, 2 deletions
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('''<a class="page-button more-comments" href="
def get_comments_page(query_string):
parameters = urllib.parse.parse_qs(query_string)
ctoken = default_multi_get(parameters, 'ctoken', 0, default='')
+ replies = False
if not ctoken:
video_id = parameters['video_id'][0]
parent_id = parameters['parent_id'][0]