diff options
Diffstat (limited to 'imdb-lookup')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index ff94348..c8863f5 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -53,6 +53,7 @@ {% set age = gmtime.tm_year - int(info['release_date'].split('-')[0]) %} {% set centuries = int(age / 10) %} {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %} + {% set local_title = tmdbcache.alternative_title(imdb_id, "DE") %} {% set imdb_data = tmdbcache.imdb_movie(imdb_id)['data'] %} {% set votes = imdb_data['num_votes'] %} {% set popularity = int( 9*(1 - (1+math.exp(-1))/(1+math.exp(votes/70000.0 -1 ))) + 1 ) %} @@ -88,19 +89,18 @@ </td> <td class="info"> <div style="font-size: 2em;"> - {{ info.title }} {% if info.title != info.original_title %} -  ({{ info.original_title }}) + {{ info.original_title }} + {% else %} + {{ info.title }} {% endif %} </div> + <div style="font-size: 0.8em; color: 3e3e3e;"> + {% if local_title != info.title %} “{{ local_title }}”, {% endif %} + {{ info['runtime'] }} min. + </style> <div>{{ info.overview }}</div> <table class="details"> - {% if 'runtime' in info %} - <tr> - <td style="font-style: italic">Runtime</td> - <td>{{ info['runtime'] }}</td> - </tr> - {% endif %} {% if 'homepage' in info and info['homepage'] %} <tr> <td style="font-style: italic">Homepage</td> |