fix issues
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Sun, 13 Oct 2019 22:51:09 +0000 (00:51 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Sun, 13 Oct 2019 22:51:09 +0000 (00:51 +0200)
music_assistant/musicproviders/spotify.py
music_assistant/musicproviders/tunein.py

index 7ba05b59bdb7fd7f2416ff25dd557a5c8e9b5a2d..c284f21d1f1f3b0350d347e26f58bcef66a9c83b 100644 (file)
@@ -52,9 +52,10 @@ class SpotifyProvider(MusicProvider):
 
     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 '''
index 1ee13fd0f3ef6fd3417b520af4a84e9827d9d162..86fddfcc41f172a68a9ba8b407988f43bab30280 100644 (file)
@@ -156,7 +156,7 @@ class TuneInProvider(MusicProvider):
         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)