From 8bcc1923ec65d5c3fb216847b098f2e42159bea3 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 17:59:29 +0100 Subject: urlencode --- imdb-lookup/imdbinfo.py | 6 +++--- imdb-lookup/index.jinja2.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 09b9c03..bf01fa0 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -11,9 +11,9 @@ import argparse import math import logging try: - from urllib.parse import quote_plus + from urllib.parse import urlencode except: - from urllib import quote_plus + from urllib import urlencode try: import tmdbsimple as tmdb @@ -183,7 +183,7 @@ def do_index(args, imdb_ids): 'input' : imdb_ids, 'tmdbcache' : Protector(tmdbcache), 'title' : 'Movie overview', - 'quote_plus' : quote_plus, + 'urlencode' : urlencode, } 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 977287f..abf194e 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -16,7 +16,7 @@

{{ info.title }}

{% if posterBase64 %} - + {% else %} -- cgit v1.2.1