fix poster lookup

This commit is contained in:
j 2013-01-29 08:05:31 +05:30
parent 2bfd63ff0f
commit f0c2b888d7

View file

@ -99,7 +99,7 @@ def get_movie_data(wikipedia_url):
def get_image_url(name):
url = 'http://en.wikipedia.org/wiki/Image:' + name.replace(' ', '%20')
data = read_url(url, unicode=True)
data = read_url(url)
url = find_re(data, 'href="(http://upload.wikimedia.org/.*?)"')
if not url:
url = find_re(data, 'href="(//upload.wikimedia.org/.*?)"')