From bccc9107b82ba1bb10a0f03751f016e238c3ded0 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 19 Dec 2018 21:23:59 -0800 Subject: Fixed regression: error on channel playlists/search page --- youtube/channel.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube/channel.py') diff --git a/youtube/channel.py b/youtube/channel.py index 8bb549e..3c65873 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -234,6 +234,7 @@ def channel_playlists_html(polymer_json): items = items_html, page_buttons = '', number_of_results = '', + sort_buttons = '', ) # Example channel where tabs do not have definite index: https://www.youtube.com/channel/UC4gQ8i3FD7YbhOgqUkeQEJg @@ -315,6 +316,7 @@ def channel_search_page(polymer_json, query, current_page=1, number_of_videos = items = items_html, page_buttons = common.page_buttons_html(current_page, math.ceil(number_of_videos/29), URL_ORIGIN + "/channel/" + channel_id + "/search", current_query_string), number_of_results = '', + sort_buttons = '', ) def get_channel_search_json(channel_id, query, page): params = proto.string(2, 'search') + proto.string(15, str(page)) -- cgit v1.2.3