{% for (filename, imdb_id) in input %} {% set info = tmdbcache.infos(imdb_id) %} {% if info %} {% set age = gmtime.tm_year - int(info['release_date'].split('-')[0]) %} {% set centuries = int(age / 10) %} {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %}
{% if "vote_average" in info.keys() %} {% endif %}
{{ " ".join(["☆"] * (10-int(info["vote_average"]))) }} {{ " ".join(["★"] * int(info["vote_average"])) }} {{ " ".join(["  "] * (10-centuries)) }} {{ " ".join(["⌚"] * centuries) }} {% if posterBase64 %} {% else %} no image {% endif %}
{{ info.title }} {% if info.title != info.original_title %}  ({{ info.original_title }}) {% endif %}
{{ info.overview }}
{% if 'runtime' in info %} {% endif %} {% if 'homepage' in info %} {% endif %}
Runtime {{ info['runtime'] }}
Homepage {{ info['homepage'] }}
Release {{ info['release_date'] }} {% if age > 0 %}  ({{ age }} year{% if age > 1 %}s{% endif %}   old){% endif %}
→ themoviedb.org→ imdb.com→ letterboxd.com→ ofdb.db
{% else %}
No infos for {{filename}} {{imdb_id}}
{% endif %} {% endfor %}