aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/common.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-10-27 02:09:05 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-10-27 02:09:05 -0700
commitcdf89465cc0d41bb5a404e6bcc05c34690fa04ff (patch)
tree1823c4a0180480721d41347be4142af81f32e74a /youtube/common.py
parentac9fbbbf10f3a74bbc0b212a03b5375d5667bca8 (diff)
downloadyt-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.py5
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>''')