From ccab080e3fe1e25f4f8952e337e2b31ee873c625 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Nov 2011 12:42:15 +0100 Subject: [PATCH] creator exists only for series --- ox/web/imdb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 97812e6..538627c 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -344,7 +344,10 @@ class Imdb(SiteParser): self[key] = filter(lambda x: x.lower() != 'home', self[key]) #0092999 if '_director' in self: - self['creator'] = self.pop('_director') + if 'series' in self: + self['creator'] = self.pop('_director') + else: + del self['_director'] if 'series' in self: if 'episodeTitle' in self: