diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-25 23:23:00 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-25 23:23:00 +0100 |
commit | f819c8deb9b109b3c30773e5032d7bf58888070b (patch) | |
tree | 30780d9abbc4b7ec9b7dc290cfd5d4743026e90d /imdb-lookup | |
parent | fba188c746e7326de9d662cfac3b548466af90b3 (diff) | |
download | scripts-f819c8deb9b109b3c30773e5032d7bf58888070b.tar.gz scripts-f819c8deb9b109b3c30773e5032d7bf58888070b.zip |
always display original title
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> |