From f819c8deb9b109b3c30773e5032d7bf58888070b Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 25 Nov 2014 23:23:00 +0100 Subject: always display original title --- imdb-lookup/index.jinja2.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'imdb-lookup/index.jinja2.html') 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 @@
- {{ info.title }} {% if info.title != info.original_title %} -  ({{ info.original_title }}) + {{ info.original_title }} + {% else %} + {{ info.title }} {% endif %}
+
+ {% if local_title != info.title %} “{{ local_title }}”, {% endif %} + {{ info['runtime'] }} min. +
{{ info.overview }}
- {% if 'runtime' in info %} - - - - - {% endif %} {% if 'homepage' in info and info['homepage'] %} -- cgit v1.2.1
Runtime{{ info['runtime'] }}
Homepage