From 964b99ea40c059b28c2c6166bb60514c980f9185 Mon Sep 17 00:00:00 2001 From: Astound Date: Mon, 22 Jan 2024 06:00:49 +0800 Subject: Fix comment replies not working YouTube set a limit of 200 replies, otherwise it rejects the request. So decrease the requested number of replies to 200 --- youtube/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube') diff --git a/youtube/comments.py b/youtube/comments.py index 5825d20..d808876 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -97,7 +97,7 @@ def post_process_comments_info(comments_info): ctoken = comment['reply_ctoken'] ctoken, err = proto.set_protobuf_value( ctoken, - 'base64p', 6, 3, 9, value=250) + 'base64p', 6, 3, 9, value=200) if err: print('Error setting ctoken value:') print(err) @@ -127,7 +127,7 @@ def post_process_comments_info(comments_info): # change max_replies field to 250 in ctoken new_ctoken, err = proto.set_protobuf_value( ctoken, - 'base64p', 6, 3, 9, value=250) + 'base64p', 6, 3, 9, value=200) if err: print('Error setting ctoken value:') print(err) -- cgit v1.2.3