From 547353e48426192240a1df478f85856f34b81f8e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 24 Jul 2007 12:17:05 +0000 Subject: [PATCH] title have special space too, good to cut out year etc --- scrapeit/imdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index e66f3d3..a24f39a 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -173,6 +173,8 @@ class IMDb: title = re.sub('\(\d\d\d\d/I\)', '', title) for t in ('TV-Series', '(mini)', '(VG)', '(V)', '(TV)'): title = title.replace(t, '') + if title.find(u'\xa0') > -1: + title = title[:title.find(u'\xa0')] title = title.strip() if title.startswith('"') and title.endswith('"'): title = title[1:-1]