diff options
author | Astound <kirito@disroot.org> | 2024-01-22 06:00:49 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-01-22 06:00:49 +0800 |
commit | 964b99ea40c059b28c2c6166bb60514c980f9185 (patch) | |
tree | d82fa56a2c08b138a8192fe0072af5a13f401130 /youtube/comments.py | |
parent | 51a16937891ebb6d419ad21d0189182cb1197430 (diff) | |
download | yt-local-964b99ea40c059b28c2c6166bb60514c980f9185.tar.lz yt-local-964b99ea40c059b28c2c6166bb60514c980f9185.tar.xz yt-local-964b99ea40c059b28c2c6166bb60514c980f9185.zip |
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
Diffstat (limited to 'youtube/comments.py')
-rw-r--r-- | youtube/comments.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |