more decodeHtml
This commit is contained in:
parent
66fe37b4ce
commit
23656cde3e
1 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@ class IMDb:
|
||||||
parsed_value = parsed_value.replace(director, '')
|
parsed_value = parsed_value.replace(director, '')
|
||||||
if parsed_value.startswith("'s"):
|
if parsed_value.startswith("'s"):
|
||||||
parsed_value = parsed_value[2:].strip()
|
parsed_value = parsed_value[2:].strip()
|
||||||
parsed_value = decodeHtml(parsed_value.strip)()
|
parsed_value = decodeHtml(parsed_value.strip())
|
||||||
else:
|
else:
|
||||||
print value
|
print value
|
||||||
parsed_value = value
|
parsed_value = value
|
||||||
|
@ -614,7 +614,7 @@ class IMDb:
|
||||||
credits = {}
|
credits = {}
|
||||||
|
|
||||||
def getNames(creditList):
|
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['director'] = getNames(raw_credits.get('directors', ''))
|
||||||
credits['writer'] = getNames(raw_credits.get('writers', ''))
|
credits['writer'] = getNames(raw_credits.get('writers', ''))
|
||||||
|
|
Loading…
Reference in a new issue