This commit is contained in:
Ruud committed 2012-05-19 17:55:41 +02:00
1 parent a5c8747fee
commit a4dec10796
2 files changed
+3 -2

No files matched your search

@@ -4,7 +4,6 @@ from couchpotato.core.helpers.variable import mergeDicts, randomString
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin from couchpotato.core.plugins.base import Plugin
from couchpotato.core.settings.model import Library from couchpotato.core.settings.model import Library
import time
import traceback import traceback
log = CPLog(__name__) log = CPLog(__name__)
@@ -3,7 +3,6 @@ from couchpotato.core.helpers.encoding import simplifyString, toUnicode
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.core.providers.movie.base import MovieProvider from couchpotato.core.providers.movie.base import MovieProvider
from libs.themoviedb import tmdb from libs.themoviedb import tmdb
import re
log = CPLog(__name__) log = CPLog(__name__)
@@ -88,6 +87,9 @@ class TheMovieDb(MovieProvider):
def getInfo(self, identifier = None): def getInfo(self, identifier = None):
if not identifier:
return {}
cache_key = 'tmdb.cache.%s' % identifier cache_key = 'tmdb.cache.%s' % identifier
result = self.getCache(cache_key) result = self.getCache(cache_key)