fix 502 bad gateway when searching

This commit is contained in:
James Taylor 2018-07-27 18:54:55 -07:00
parent 182a2f3bdb
commit f65ebef2eb

View File

@ -57,7 +57,8 @@ def get_search_json(query, page, autocorrect, sort):
'X-YouTube-Client-Name': '1',
'X-YouTube-Client-Version': '2.20180418',
}
url += "&pbj=1&sp=" + page_number_to_sp_parameter(page, autocorrect, sort)
url += "&pbj=1&sp=" + page_number_to_sp_parameter(page, autocorrect, sort).replace("=", "%3D")
print(url)
content = common.fetch_url(url, headers=headers)
info = json.loads(content)
return info