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
def get_data(self, mediaid, arttype, language): result = cache.cacheFunction(self._get_data, mediaid, arttype, language) return result if result != 'Empty' else None
def get_data(self, mediaid): result = cache.cacheFunction(self._get_data, mediaid) return result if result != 'Empty' else None
def get_data(self, url, params=None): result = cache.cacheFunction(self._get_data, url, params) return result if result != 'Empty' else None
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