summaryrefslogtreecommitdiff
path: root/imdb-lookup/index.jinja2.html
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-11-22 16:51:53 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-11-22 16:51:53 +0100
commit377a4dd4ae8563a6882858dd6c4e1063d039f400 (patch)
tree452a28243acbba354e176fd802b27238dcd7c322 /imdb-lookup/index.jinja2.html
parent808bd6e9cb9e07e2ae1d1f116b6b540e36bd64bc (diff)
downloadscripts-377a4dd4ae8563a6882858dd6c4e1063d039f400.tar.gz
scripts-377a4dd4ae8563a6882858dd6c4e1063d039f400.zip
exception handling and p27/py3 compatible encoding
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r--imdb-lookup/index.jinja2.html4
1 files changed, 4 insertions, 0 deletions
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) %}</h2>
{% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %}
+ {% if info %}
<div style="clear: left; padding-top: 3em;">
<h2 style="">{{ info.title }}</h2>
<div style="width: 185px; float: left;">
@@ -36,6 +37,9 @@
</table>
</div>
</div>
+ {% else %}
+ <span>No infos for {{filename}} {{imdb_id}}</span>
+ {% endif %}
{% endfor %}
</body>
</html>