From 1e2e2cfbf805bd126816c11dd7e10099aa15a582 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 21 Dec 2014 22:49:41 +0100 Subject: add protector class --- imdb-lookup/imdbinfo.py | 3 +-- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.1