diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-21 22:49:41 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-21 22:49:41 +0100 |
commit | 1e2e2cfbf805bd126816c11dd7e10099aa15a582 (patch) | |
tree | 876eedb2f5f67f2644f9c9bddd7f0b0fd104de33 | |
parent | 2d0e49183a5c49badb96a0168dab575f7db70b21 (diff) | |
download | scripts-1e2e2cfbf805bd126816c11dd7e10099aa15a582.tar.gz scripts-1e2e2cfbf805bd126816c11dd7e10099aa15a582.zip |
add protector class
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 3 |
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, |