summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdbinfo.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-12-21 22:49:41 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-12-21 22:49:41 +0100
commit1e2e2cfbf805bd126816c11dd7e10099aa15a582 (patch)
tree876eedb2f5f67f2644f9c9bddd7f0b0fd104de33 /imdb-lookup/imdbinfo.py
parent2d0e49183a5c49badb96a0168dab575f7db70b21 (diff)
downloadscripts-1e2e2cfbf805bd126816c11dd7e10099aa15a582.tar.gz
scripts-1e2e2cfbf805bd126816c11dd7e10099aa15a582.zip
add protector class
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-ximdb-lookup/imdbinfo.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index 7419103..5e92994 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -307,7 +307,7 @@ def do_index(args, imdb_ids):
return out
def data(callbackName):
- db = TMDBCache() #Protector(tmdbcache)
+ db = Protector(TMDBCache())
def poster(imdb_id):
data = db.poster_low(imdb_id)
if data:
@@ -369,7 +369,6 @@ def do_index(args, imdb_ids):
template_file = os.path.join(os.path.dirname(__file__),
"index.jinja2.html")
template = Template(open(template_file, "r").read())
- tmdbcache = TMDBCache()
mapping = {
'title': 'Movie overview',
'install': install,