first strip, decode entities after that
This commit is contained in:
parent
eeb9b859a2
commit
26aa58d3a2
1 changed files with 2 additions and 2 deletions
|
@ -127,8 +127,8 @@ def getMovieInfo(imdbId):
|
|||
html_title = html_title.split('<span class="pro-link">')[0]
|
||||
if html_title:
|
||||
html_title = html_title.replace('<br />', ' ').replace(' ', ' ')
|
||||
title = decodeHtml(html_title)
|
||||
title = stripTags(title)
|
||||
title = stripTags(html_title)
|
||||
title = decodeHtml(title)
|
||||
year = findRe(title, '\((\d{4})\)')
|
||||
if not year:
|
||||
year = findRe(title, '\((\d{4})')
|
||||
|
|
Loading…
Reference in a new issue