From 3025158d145babbfa2e3737eede1991e6251f4d3 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 28 May 2023 21:08:05 -0400 Subject: Use ctoken_v3 format for channel playlist & search pages For #151 --- youtube/channel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'youtube') 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 -- cgit v1.2.3