no pro link

This commit is contained in:
j 2008-09-18 10:18:46 +02:00
parent 9cdebfa01d
commit c54bcc0738
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ def getMovieInfo(imdbId):
html_title = findRe(data, '<div id="tn15title">(.*?)</div>')
if not html_title:
html_title = findRe(data, '<title>(.*?)</title>')
else:
html_title = html_title.split('<span class="pro-link">')[0]
if html_title:
html_title = html_title.replace('<br />', ' ').replace(' ', ' ')
title = decodeHtml(html_title)