diff options
-rw-r--r-- | youtube/search.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/search.py b/youtube/search.py index 0f77595..faa8a3c 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -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 |