diff options
Diffstat (limited to 'youtube/channel.py')
-rw-r--r-- | youtube/channel.py | 4 |
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, |