From 377a4dd4ae8563a6882858dd6c4e1063d039f400 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 16:51:53 +0100 Subject: exception handling and p27/py3 compatible encoding --- imdb-lookup/index.jinja2.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'imdb-lookup/index.jinja2.html') diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index 7271e91..0dbf973 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -11,6 +11,7 @@ {% for (filename, imdb_id) in input %} {% set info = tmdbcache.infos(imdb_id) %} {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %} + {% if info %}

{{ info.title }}

@@ -36,6 +37,9 @@
+ {% else %} + No infos for {{filename}} {{imdb_id}} + {% endif %} {% endfor %} -- cgit v1.2.1