From 26aa58d3a2f470d990d627663a119464f4db2797 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 14 Jul 2009 14:49:00 +0200 Subject: [PATCH] first strip, decode entities after that --- oxweb/imdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxweb/imdb.py b/oxweb/imdb.py index 08823ed..09c65be 100644 --- a/oxweb/imdb.py +++ b/oxweb/imdb.py @@ -127,8 +127,8 @@ def getMovieInfo(imdbId): html_title = html_title.split('')[0] if html_title: html_title = html_title.replace('
', ' ').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})')