{% for (filename, imdb_id) in input %} {% set info = tmdbcache.infos(imdb_id) %} {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %} {% if info %}
{% if "vote_average" in info.keys() %} {% endif %}
{{ " ".join(["☆"] * (10-int(info["vote_average"]))) }} {{ " ".join(["★"] * int(info["vote_average"])) }} {% if posterBase64 %} {% else %} no image {% endif %}
{{ info.title }}
{{ info.overview }}
{% for (key, value) in info.items() %} {% if key in ['runtime','adult','homepage','release_date','original_title'] %} {% endif %} {% endfor %}
{{ key }} {{ value }}
{% else %} No infos for {{filename}} {{imdb_id}} {% endif %} {% endfor %}