aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-06-21 22:29:25 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-06-21 22:29:25 -0700
commit1c724f4f28804f3f8e41d222576e6fc5d7e68f75 (patch)
treea7115d733c09638a54c58c8c483763c5cb20c7f8 /youtube
parent05de30454852c6f55f33c8e8c0ab948bf2c590c2 (diff)
downloadyt-local-1c724f4f28804f3f8e41d222576e6fc5d7e68f75.tar.lz
yt-local-1c724f4f28804f3f8e41d222576e6fc5d7e68f75.tar.xz
yt-local-1c724f4f28804f3f8e41d222576e6fc5d7e68f75.zip
Search: fix corrections not working
Diffstat (limited to 'youtube')
-rw-r--r--youtube/search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/search.py b/youtube/search.py
index fcc352f..76a814c 100644
--- a/youtube/search.py
+++ b/youtube/search.py
@@ -86,7 +86,7 @@ def get_search_page():
continue
if type == 'didYouMeanRenderer':
renderer = renderer[type]
- corrected_query_string = parameters.copy()
+ corrected_query_string = request.args.to_dict(flat=False)
corrected_query_string['query'] = [renderer['correctedQueryEndpoint']['searchEndpoint']['query']]
corrected_query_url = util.URL_ORIGIN + '/search?' + urllib.parse.urlencode(corrected_query_string, doseq=True)
@@ -98,7 +98,7 @@ def get_search_page():
continue
if type == 'showingResultsForRenderer':
renderer = renderer[type]
- no_autocorrect_query_string = parameters.copy()
+ no_autocorrect_query_string = request.args.to_dict(flat=False)
no_autocorrect_query_string['autocorrect'] = ['0']
no_autocorrect_query_url = util.URL_ORIGIN + '/search?' + urllib.parse.urlencode(no_autocorrect_query_string, doseq=True)