Change cachekey if info not extended
This commit is contained in:
1 parent
d743282578
commit
d9b9447242
1 file changed
+2
-2
@@ -66,7 +66,7 @@ class TheMovieDb(MovieProvider):
|
|||||||
if not identifier:
|
if not identifier:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
cache_key = 'tmdb.cache.%s' % identifier
|
cache_key = 'tmdb.cache.%s%s' % (identifier, '.ex' if extended else '')
|
||||||
result = self.getCache(cache_key)
|
result = self.getCache(cache_key)
|
||||||
|
|
||||||
if not result:
|
if not result:
|
||||||
@@ -88,7 +88,7 @@ class TheMovieDb(MovieProvider):
|
|||||||
|
|
||||||
def parseMovie(self, movie, extended = True):
|
def parseMovie(self, movie, extended = True):
|
||||||
|
|
||||||
cache_key = 'tmdb.cache.%s' % movie.id
|
cache_key = 'tmdb.cache.%s%s' % (movie.id, '.ex' if extended else '')
|
||||||
movie_data = self.getCache(cache_key)
|
movie_data = self.getCache(cache_key)
|
||||||
|
|
||||||
if not movie_data:
|
if not movie_data:
|
||||||
|
|||||||
Reference in new issue
Block a user