diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-12-19 21:23:59 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-12-19 21:23:59 -0800 |
commit | bccc9107b82ba1bb10a0f03751f016e238c3ded0 (patch) | |
tree | dd271d3d4b475c44c5050eed08eeb807a91c3cf9 /youtube/channel.py | |
parent | 75b0c52f5743f837f7dc676fb780882388820e4d (diff) | |
download | yt-local-bccc9107b82ba1bb10a0f03751f016e238c3ded0.tar.lz yt-local-bccc9107b82ba1bb10a0f03751f016e238c3ded0.tar.xz yt-local-bccc9107b82ba1bb10a0f03751f016e238c3ded0.zip |
Fixed regression: error on channel playlists/search page
Diffstat (limited to 'youtube/channel.py')
-rw-r--r-- | youtube/channel.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |