blob: a87092e4d0507ba71c7a930eab8dab5052b88f7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<!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']) %}
{% if info %}
<div style="clear: left; padding-top: 3em;">
<h2 style="">
{% if "vote_average" in info.keys() %}
{{ " ".join(["★"] * int(info["vote_average"])) }}
<span style="color:gray;">
{{ " ".join(["☆"] * (10-int(info["vote_average"]))) }}
</span>
{% endif %}
{{ info.title }}
</h2>
<div style="width: 185px; float: left; min-height: 200px; border: 2px solid gray;">
{% if posterBase64 %}
<a href="{{urlencode(filename)}}">
<img src="{{ posterBase64 }}" />
</a>
{% else %}
<span> no image </span>
{% endif %}
</div>
<div style="">
<div style="font-size: 1.2em; padding: 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>
{% else %}
<span>No infos for {{filename}} {{imdb_id}}</span>
{% endif %}
{% endfor %}
</body>
</html>
|