From a691759a1282c1a3a29aaa71d525c2bf6edc897e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 10 Aug 2011 16:16:04 +0200 Subject: [PATCH] remove quotes --- ox/web/imdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 1e77411..248f63f 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -273,8 +273,9 @@ class Imdb(SiteParser): self['title'] = self.get('english_title', self['original_title']) - if 'title' in self and self['title'].startswith('"') and self['title'].endswith('"'): - self['title'] = self['title'][1:-1] + for t in ('title', 'english_title', 'original_title'): + if t in self and self[t].startswith('"') and self[t].endswith('"'): + self[t] = self[t][1:-1] if 'alternative_titles' in self: self['alternative_titles'] = [[t[0],