diff options
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index e55c855..23e75fc 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -89,7 +89,7 @@ {% set imdb_data = tmdbcache.imdb_movie(imdb_id)['data'] %} {% set omdb_data = tmdbcache.omdb_movie(imdb_id) %} {% if info and imdb_data and omdb_data %} - {% set year = int(info['release_date'].split('-')[0]) %} + {% set year = info['release_date'] and int(info['release_date'].split('-')[0]) or gmtime.tm_year %} {% set age = gmtime.tm_year - year %} {% set centuries = int(age / 10) %} {% set posterBase64 = tmdbcache.poster_base64(info['poster_path'],'w154') %} |