diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:59:29 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:59:29 +0100 |
commit | 8bcc1923ec65d5c3fb216847b098f2e42159bea3 (patch) | |
tree | 4b8ca6a81205e8fd4ac6591ee5e14def93cb6644 /imdb-lookup/imdbinfo.py | |
parent | 32b069aad22041fa9cf79790655c425796b80d03 (diff) | |
download | scripts-8bcc1923ec65d5c3fb216847b098f2e42159bea3.tar.gz scripts-8bcc1923ec65d5c3fb216847b098f2e42159bea3.zip |
urlencode
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 6 |
1 files changed, 3 insertions, 3 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) |