add latency/readtime reporting for more things, round the numbers by reasonable amount

This commit is contained in:
James Taylor
2018-10-01 18:01:05 -07:00
parent 03f5ccbacb
commit dd800485f0
3 changed files with 7 additions and 8 deletions

View File

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