Wrong cache_key

This commit is contained in:
Ruud
2012-06-11 17:02:24 +02:00
parent 5b2f1248e0
commit 15cc545ab1
@@ -56,7 +56,7 @@ class TheMovieDb(MovieProvider):
return False return False
search_string = simplifyString(q) search_string = simplifyString(q)
cache_key = 'tmdb.cache.%s.%s', (search_string, limit) cache_key = 'tmdb.cache.%s.%s' % (search_string, limit)
results = self.getCache(cache_key) results = self.getCache(cache_key)
if not results: if not results:
@@ -90,7 +90,7 @@ class TheMovieDb(MovieProvider):
if not identifier: if not identifier:
return {} return {}
cache_key = 'tmdb.cache.%s', identifier cache_key = 'tmdb.cache.%s' % identifier
result = self.getCache(cache_key) result = self.getCache(cache_key)
if not result: if not result:
@@ -111,7 +111,7 @@ class TheMovieDb(MovieProvider):
def getInfoByTMDBId(self, id = None): def getInfoByTMDBId(self, id = None):
cache_key = 'tmdb.cache.%s', id cache_key = 'tmdb.cache.%s' % id
result = self.getCache(cache_key) result = self.getCache(cache_key)
if not result: if not result: