first strip, decode entities after that

This commit is contained in:
j 2009-07-14 14:49:00 +02:00
parent eeb9b859a2
commit 26aa58d3a2

View file

@ -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})')