Use ctoken_v3 format for channel playlist & search pages

For #151
This commit is contained in:
Jesus E 2023-05-28 21:08:05 -04:00
parent fb13fd21ef
commit 3025158d14
No known key found for this signature in database
GPG Key ID: 159C8F8BC9AED8B6

View File

@ -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