aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'youtube')
-rw-r--r--youtube/channel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index 6f40965..97afa6e 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -187,7 +187,8 @@ def get_number_of_videos_general(base_url):
def get_channel_search_json(channel_id, query, page):
- params = proto.string(2, 'search') + proto.string(15, str(page))
+ offset = proto.unpadded_b64encode(proto.uint(3, (page-1)*30))
+ params = proto.string(2, 'search') + proto.string(15, offset)
params = proto.percent_b64encode(params)
ctoken = proto.string(2, channel_id) + proto.string(3, params) + proto.string(11, query)
ctoken = base64.urlsafe_b64encode(proto.nested(80226972, ctoken)).decode('ascii')