Multiple search fixes

* Remove percent-encoding of the search query when calling youtube API, as it
  breaks UTF-8
* Empty search redirects to /search, not /
* Show the fullscreen search "home page" (from #1977) at /search
* Allow 'region=' parameter to be passed to /search
* Other minor fixes
This commit is contained in:
Samantaz Fox
2021-06-13 21:40:11 +02:00
parent fe64e6dbf2
commit a2f5342a83
3 changed files with 17 additions and 11 deletions

View File

@@ -79,7 +79,7 @@ end
def request_youtube_api_search(search_query : String, params : String, region = nil)
# JSON Request data, required by the API
data = {
"query" => URI.encode_www_form(search_query),
"query" => search_query,
"context" => make_youtube_api_context(region),
"params" => params,
}