From 32b069aad22041fa9cf79790655c425796b80d03 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 17:57:06 +0100 Subject: links --- imdb-lookup/imdbinfo.py | 5 +++++ imdb-lookup/index.jinja2.html | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'imdb-lookup') diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index bc9a062..09b9c03 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -10,6 +10,10 @@ import base64 import argparse import math import logging +try: + from urllib.parse import quote_plus +except: + from urllib import quote_plus try: import tmdbsimple as tmdb @@ -179,6 +183,7 @@ def do_index(args, imdb_ids): 'input' : imdb_ids, 'tmdbcache' : Protector(tmdbcache), 'title' : 'Movie overview', + 'quote_plus' : quote_plus, } assert not os.path.exists("index.html"), "index.html already exists" stream = template.generate(mapping) diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index cecd2b9..977287f 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -16,13 +16,15 @@

{{ info.title }}

{% if posterBase64 %} - + + + {% else %} no image {% endif %}
-
+
{{ info.overview }}
-- cgit v1.2.1