From 6331d586fc876ad3771277fbbde7402025d8a5e0 Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Tue, 22 Nov 2011 12:46:27 +0100
Subject: [PATCH] creator for series entries
---
ox/web/imdb.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ox/web/imdb.py b/ox/web/imdb.py
index 538627c..bd323a7 100644
--- a/ox/web/imdb.py
+++ b/ox/web/imdb.py
@@ -228,6 +228,11 @@ class Imdb(SiteParser):
're': '
TV Series:
.*?(TV series)',
+ 'type': 'string'
+ },
'originalTitle': {
'page': 'combined',
're': '(.*?) ',
@@ -344,10 +349,12 @@ class Imdb(SiteParser):
self[key] = filter(lambda x: x.lower() != 'home', self[key])
#0092999
if '_director' in self:
- if 'series' in self:
+ if 'series' in self or 'isSeries' in self:
self['creator'] = self.pop('_director')
else:
del self['_director']
+ if 'isSeries' in self:
+ del self['isSeries']
if 'series' in self:
if 'episodeTitle' in self: