async def setup(self):
''' perform async setup '''
+ self.throttler = Throttler(rate_limit=1, period=1)
self.http_session = aiohttp.ClientSession(
loop=self.mass.event_loop, connector=aiohttp.TCPConnector())
- self.throttler = Throttler(rate_limit=1, period=1)
+
async def search(self, searchstring, media_types=List[MediaType], limit=5):
''' perform search on the provider '''
params['username'] = self._username
params['partnerId'] = '1'
async with self.throttler:
- async with self.http_session.get(url, params=params) as response:
+ async with self.http_session.get(url, params=params, verify_ssl=False) as response:
result = await response.json()
if not result or 'error' in result:
LOGGER.error(url)