Fix regression: Channels not sorting by oldest/popular
get_channel_first_page was mistakenly used when the sorting or view is different. Must use channel_tab which generates the necessary ctokens. Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
2df4238924
commit
1532a48ef4
@ -237,8 +237,9 @@ def get_channel_page_general_url(base_url, tab, request, channel_id=None):
|
||||
view = request.args.get('view', '1')
|
||||
query = request.args.get('query', '')
|
||||
ctoken = request.args.get('ctoken', '')
|
||||
default_params = (page_number == 1 and sort == '3' and view == '1')
|
||||
|
||||
if tab == 'videos' and channel_id and page_number > 1:
|
||||
if tab == 'videos' and channel_id and not default_params:
|
||||
tasks = (
|
||||
gevent.spawn(get_number_of_videos_channel, channel_id),
|
||||
gevent.spawn(get_channel_tab, channel_id, page_number, sort,
|
||||
|
Loading…
x
Reference in New Issue
Block a user