diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-23 23:53:04 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-23 23:57:45 -0700 |
commit | e00c3cf99f06e6f0c097e019219760cf26d16cbe (patch) | |
tree | 3d722ffaf11760d811e8d4f26106d045d0c63126 /youtube/search.py | |
parent | cb1c899a4570e8644dad572c7f00a3d96c844a2f (diff) | |
download | yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.tar.lz yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.tar.xz yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.zip |
Remove ad-hoc response saving from code, create a debug setting for fetch_url
Diffstat (limited to 'youtube/search.py')
-rw-r--r-- | youtube/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/search.py b/youtube/search.py index 39a80bf..e35d0cb 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -53,7 +53,7 @@ def get_search_json(query, page, autocorrect, sort, filters): 'X-YouTube-Client-Version': '2.20180418', } url += "&pbj=1&sp=" + page_number_to_sp_parameter(page, autocorrect, sort, filters).replace("=", "%3D") - content = util.fetch_url(url, headers=headers, report_text="Got search results") + content = util.fetch_url(url, headers=headers, report_text="Got search results", debug_name='search_results') info = json.loads(content) return info |