From 02b20b004212470d98513b6497539a6f9bc7c070 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 1 Mar 2013 15:15:18 +0530 Subject: [PATCH] expose isSeries flag --- ox/web/imdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 0350ad7..27577b8 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -262,7 +262,7 @@ class Imdb(SiteParser): }, 'isSeries': { 'page': 'combined', - 're': '\(*TV series', + 're': '(TV series) ', 'type': 'string' }, 'title': { @@ -476,6 +476,7 @@ class Imdb(SiteParser): del self['_director'] if 'isSeries' in self: del self['isSeries'] + self['isSeries'] = True if 'episodeTitle' in self: self['episodeTitle'] = re.sub('Episode \#\d+\.\d+', '', self['episodeTitle'])