Fix pagination
This commit is contained in:
parent
6af17450c6
commit
5d53225874
@ -36,7 +36,7 @@ generic_cookie = (('Cookie', 'VISITOR_INFO1_LIVE=ST1Ti53r4fU'),)
|
|||||||
# changed offset field to uint id 1
|
# 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 = 30*(int(page) - 1)
|
||||||
if tab == 'videos':
|
if tab == 'videos':
|
||||||
tab = 15
|
tab = 15
|
||||||
elif tab == 'shorts':
|
elif tab == 'shorts':
|
||||||
@ -85,7 +85,7 @@ def channel_ctoken_v5(channel_id, page, sort, tab, view=1):
|
|||||||
# https://github.com/user234683/youtube-local/issues/151
|
# https://github.com/user234683/youtube-local/issues/151
|
||||||
def channel_ctoken_v4(channel_id, page, sort, tab, view=1):
|
def channel_ctoken_v4(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 = 30*(int(page) - 1)
|
offset = str(30*(int(page) - 1))
|
||||||
pointless_nest = proto.string(80226972,
|
pointless_nest = proto.string(80226972,
|
||||||
proto.string(2, channel_id)
|
proto.string(2, channel_id)
|
||||||
+ proto.string(3,
|
+ proto.string(3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user