aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-06-18 13:55:07 -0400
committerJesus E <heckyel@riseup.net>2023-06-18 13:55:07 -0400
commit5d5322587414dcc12572a6e854fbfe072b7e63b6 (patch)
tree2654f7d5bfe7af47dbe5c9f3a51cf32d28c60b24
parent6af17450c6aec89ad4c5fe1fc9525fdad6a0f30a (diff)
downloadyt-local-5d5322587414dcc12572a6e854fbfe072b7e63b6.tar.lz
yt-local-5d5322587414dcc12572a6e854fbfe072b7e63b6.tar.xz
yt-local-5d5322587414dcc12572a6e854fbfe072b7e63b6.zip
Fix pagination
-rw-r--r--youtube/channel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index f79db88..4f0d768 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -36,7 +36,7 @@ generic_cookie = (('Cookie', 'VISITOR_INFO1_LIVE=ST1Ti53r4fU'),)
# 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))
+ offset = 30*(int(page) - 1)
if tab == 'videos':
tab = 15
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
def channel_ctoken_v4(channel_id, page, sort, tab, view=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,
proto.string(2, channel_id)
+ proto.string(3,