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