summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdbinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-ximdb-lookup/imdbinfo.py5
1 files changed, 5 insertions, 0 deletions
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)