diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-10-27 02:09:05 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-10-27 02:09:05 -0700 |
commit | cdf89465cc0d41bb5a404e6bcc05c34690fa04ff (patch) | |
tree | 1823c4a0180480721d41347be4142af81f32e74a /youtube/common.py | |
parent | ac9fbbbf10f3a74bbc0b212a03b5375d5667bca8 (diff) | |
download | yt-local-cdf89465cc0d41bb5a404e6bcc05c34690fa04ff.tar.lz yt-local-cdf89465cc0d41bb5a404e6bcc05c34690fa04ff.tar.xz yt-local-cdf89465cc0d41bb5a404e6bcc05c34690fa04ff.zip |
fix search filters not being applied to next pages in results
Diffstat (limited to 'youtube/common.py')
-rw-r--r-- | youtube/common.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube/common.py b/youtube/common.py index 54ac70f..f534d84 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -620,13 +620,10 @@ def playlist_item_html(item, template, html_exclude=set()): -def make_query_string(query_string): - return '&'.join(key + '=' + ','.join(values) for key,values in query_string.items()) - def update_query_string(query_string, items): parameters = urllib.parse.parse_qs(query_string) parameters.update(items) - return make_query_string(parameters) + return urllib.parse.urlencode(parameters, doseq=True) page_button_template = Template('''<a class="page-button" href="$href">$page</a>''') current_page_button_template = Template('''<div class="page-button">$page</div>''') |