summaryrefslogtreecommitdiff
path: root/imdb-lookup/index.jinja2.html
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-11-22 16:20:09 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-11-22 16:22:21 +0100
commitfcc3f76455f4d6dc6616bf1b6edc4527fd15a6bb (patch)
tree35523ca8a5b3a7698ff9090574ad5e7b8dbcfb87 /imdb-lookup/index.jinja2.html
parentb493cb9432e5ef7a2baeeab3af155a3929c8914c (diff)
downloadscripts-fcc3f76455f4d6dc6616bf1b6edc4527fd15a6bb.tar.gz
scripts-fcc3f76455f4d6dc6616bf1b6edc4527fd15a6bb.zip
generate shiny html stuff with pictures
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r--imdb-lookup/index.jinja2.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html
new file mode 100644
index 0000000..42eed34
--- /dev/null
+++ b/imdb-lookup/index.jinja2.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>{{title}}</title>
+ </head>
+ <body>
+ <h1>List of Movies</h1>
+ {% for (filename, imdb_id) in input %}
+ {% set info = tmdbcache.infos(imdb_id) %}</h2>
+ {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %}
+ <div style="clear: left; padding-top: 3em;">
+ <h2 style="">{{ info.title }}</h2>
+ <div style="width: 185px; float: left;">
+ <img src="{{ posterBase64 }}" />
+ </div>
+ <div style="">
+ <div style="font-size: 1.2em;">
+ {{ info.overview }}
+ </div>
+ <table style="padding: 2em;">
+ {% for (key, value) in info.items() %}
+ {% if key in ['runtime','adult','homepage','release_date','original_title'] %}
+ <tr>
+ <td style="padding: 0.2em; font-style: italic;">{{ key }}</td>
+ <td style="padding: 0.2em;">{{ value }}</td>
+ </tr>
+ {% endif %}
+ {% endfor %}
+ </table>
+ </div>
+ </div>
+ {% endfor %}
+ </body>
+</html>