aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-05-28 21:08:05 -0400
committerJesus E <heckyel@riseup.net>2023-05-28 21:08:05 -0400
commit3025158d145babbfa2e3737eede1991e6251f4d3 (patch)
treea9a29fe02f2b72b2b9525c6d9e32159e6a707251
parentfb13fd21ef3a408b4d1be4901955aca38393d987 (diff)
downloadyt-local-3025158d145babbfa2e3737eede1991e6251f4d3.tar.lz
yt-local-3025158d145babbfa2e3737eede1991e6251f4d3.tar.xz
yt-local-3025158d145babbfa2e3737eede1991e6251f4d3.zip
Use ctoken_v3 format for channel playlist & search pages
For #151
-rw-r--r--youtube/channel.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index de3b449..0dcf695 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -159,7 +159,10 @@ def get_channel_tab(channel_id, page="1", sort=3, tab='videos', view=1,
message = 'Got channel tab' if print_status else None
if not ctoken:
- ctoken = channel_ctoken_v4(channel_id, page, sort, tab, view)
+ if tab == 'videos':
+ ctoken = channel_ctoken_v4(channel_id, page, sort, tab, view)
+ else:
+ ctoken = channel_ctoken_v3(channel_id, page, sort, tab, view)
ctoken = ctoken.replace('=', '%3D')
# Not sure what the purpose of the key is or whether it will change