aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-06-17 16:16:40 -0400
committerJesus E <heckyel@riseup.net>2023-06-17 16:16:40 -0400
commitdb08283368fe3f3bd65561b297535633c1f3202e (patch)
tree9076ddee3a8e4ffab4df185936603273c041b842 /youtube
parent0f4bf45cdebbfb10ec0b2e909b65d0396ddd2cc2 (diff)
downloadyt-local-db08283368fe3f3bd65561b297535633c1f3202e.tar.lz
yt-local-db08283368fe3f3bd65561b297535633c1f3202e.tar.xz
yt-local-db08283368fe3f3bd65561b297535633c1f3202e.zip
Update token offset field
Change offset field to a uint with field number 1
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 5c757d3..974fb8a 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -33,6 +33,7 @@ generic_cookie = (('Cookie', 'VISITOR_INFO1_LIVE=ST1Ti53r4fU'),)
# added an extra nesting under the 2nd base64 compared to v4
# added tab support
+# changed offset field to uint id 1
def channel_ctoken_v5(channel_id, page, sort, tab, view=1):
new_sort = (2 if int(sort) == 1 else 1)
offset = str(30*(int(page) - 1))
@@ -58,7 +59,7 @@ def channel_ctoken_v5(channel_id, page, sort, tab, view=1):
proto.string(2,
b"ST:"
+ proto.unpadded_b64encode(
- proto.string(2, offset)
+ proto.uint(1, offset)
)
)
)