From 1522f870b779832eb9736f4e80459a627bcf5ca6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 14 Sep 2012 11:31:29 +0200 Subject: [PATCH] strip whitespace --- ox/web/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 2add14f..4cfd419 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -305,7 +305,7 @@ class Imdb(SiteParser): if title.startswith('"') and title.endswith('"'): title = title[1:-1] title = re.sub('\(\#[.\d]+\)', '', title) - return title + return title.strip() for t in ('title', 'englishTitle', 'originalTitle'): if t in self: