From 3e91998dfb70f17e605ad011a26fb010f488143b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 15 Sep 2007 16:44:09 +0000 Subject: [PATCH] no default episodes titles --- scrapeit/imdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 2faa157..7de45d7 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -256,7 +256,6 @@ class IMDb: key = key[1][:-1].lower().replace(' ', '_') if key in keys: IMDbDict[key] = self.parse_raw_value(key, raw_value) - IMDbDict['title_english'] = IMDbDict.pop('also_known_as', IMDbDict['title']) #is episode IMDbDict['episode_of'] = IMDbDict.pop('tv_series', '') @@ -343,6 +342,8 @@ class IMDb: episodes[episode] = {} episodes[episode]['imdb'] = match[2] episodes[episode]['title'] = match[3].strip() + if episodes[episode]['title'].startswith('Episode #%d'%int(match[0])): + episodes[episode]['title'] = u'' description = htmldecode(match[4]) description = stripTags(description.split('Next US airings:')[0]) episodes[episode]['description'] = description