Exemplo n.º 1
0
 def get_data(self, url, params=None):
     apikey = settings.get_apikey('tadb')
     if not apikey:
         raise build_key_error('tadb')
     result = cache.cacheFunction(self._get_data,
                                  url.format(settings.get_apikey('tadb')),
                                  params)
     return result if result != 'Empty' else None
Exemplo n.º 2
0
 def get_data(self, mediaid, arttype, language):
     result = cache.cacheFunction(self._get_data, mediaid, arttype,
                                  language)
     return result if result != 'Empty' else None
Exemplo n.º 3
0
 def get_data(self, mediaid):
     result = cache.cacheFunction(self._get_data, mediaid)
     return result if result != 'Empty' else None
Exemplo n.º 4
0
 def get_data(self, url, params=None):
     result = cache.cacheFunction(self._get_data, url, params)
     return result if result != 'Empty' else None
Exemplo n.º 5
0
 def get_data(self, url, params):
     result = cache.cacheFunction(self._get_data,
                                  url.format(settings.get_apikey('tadb')),
                                  params)
     return result if result != 'Empty' else None