more decodeHtml

This commit is contained in:
j 2008-06-16 14:06:16 +02:00
parent 66fe37b4ce
commit 23656cde3e

View file

@ -498,7 +498,7 @@ class IMDb:
parsed_value = parsed_value.replace(director, '')
if parsed_value.startswith("'s"):
parsed_value = parsed_value[2:].strip()
parsed_value = decodeHtml(parsed_value.strip)()
parsed_value = decodeHtml(parsed_value.strip())
else:
print value
parsed_value = value
@ -614,7 +614,7 @@ class IMDb:
credits = {}
def getNames(creditList):
return [stripTags(c[0]) for c in creditList]
return [stripTags(decodeHtml(c[0])) for c in creditList]
credits['director'] = getNames(raw_credits.get('directors', ''))
credits['writer'] = getNames(raw_credits.get('writers', ''))