Update token offset field
Change offset field to a uint with field number 1
This commit is contained in:
parent
0f4bf45cde
commit
db08283368
@ -33,6 +33,7 @@ generic_cookie = (('Cookie', 'VISITOR_INFO1_LIVE=ST1Ti53r4fU'),)
|
|||||||
|
|
||||||
# added an extra nesting under the 2nd base64 compared to v4
|
# added an extra nesting under the 2nd base64 compared to v4
|
||||||
# added tab support
|
# added tab support
|
||||||
|
# changed offset field to uint id 1
|
||||||
def channel_ctoken_v5(channel_id, page, sort, tab, view=1):
|
def channel_ctoken_v5(channel_id, page, sort, tab, view=1):
|
||||||
new_sort = (2 if int(sort) == 1 else 1)
|
new_sort = (2 if int(sort) == 1 else 1)
|
||||||
offset = str(30*(int(page) - 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,
|
proto.string(2,
|
||||||
b"ST:"
|
b"ST:"
|
||||||
+ proto.unpadded_b64encode(
|
+ proto.unpadded_b64encode(
|
||||||
proto.string(2, offset)
|
proto.uint(1, offset)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user