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
This commit is contained in:
Astound 2024-01-22 06:00:49 +08:00
parent 51a1693789
commit 964b99ea40
Signed by: kaiser
GPG Key ID: 97504AF0027B1A56

View File

@ -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)