Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     super(TidalLibraryProvider, self).__init__(*args, **kwargs)
     self.lru_album_tracks = LruCache(max_size=10)
     self.lru_artist_img = LruCache()
     self.lru_album_img = LruCache()
     self.track_cache = Cache()
     self.config = kwargs["backend"]._config
     if self.config["tidal"]["spotify_proxy"]:
         self.spotify_proxy = SpotifyProxy(
             str(self.config["tidal"]["spotify_client_id"]),
             str(self.config["tidal"]["spotify_client_secret"]))
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(TidalLibraryProvider, self).__init__(*args, **kwargs)
     self.lru_album_tracks = LruCache(max_size=10)
     self.lru_artist_img = LruCache()
     self.lru_album_img = LruCache()
     self.track_cache = Cache()