Commit 4a2383a4 authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Fix "may 14" bug

parent 131c5448
......@@ -39,7 +39,10 @@ class Search:
async def Feed(self):
connect = aiohttp.TCPConnector(verify_ssl=False)
ua = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.139 Chrome/66.0.3359.139 Safari/537.36'}
if self.init == -1
ua = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.139 Chrome/66.0.3359.139 Safari/537.36'}
else:
ua = ""
async with aiohttp.ClientSession(headers=ua, connector=connect) as session:
response = await get.Response(session, await get.Url(self.config, self.init).search())
self.feed = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment