diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 0f1b728..c4ca0d5 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -153,7 +153,14 @@ class IMDb: m = re.compile('(.*) \(USA').findall(value) if m: parsed_value = m[0] - parsed_value = parsed_value.split('
')[-1].split('(')[0].strip() + parsed_value = parsed_value.split('
')[-1].split('(')[0] + director = self.parseCredits().get('director', None) + if director: + director = director[0] + parsed_value = parsed_value.replace(director, '') + if parsed_value.startswith("'s"): + parsed_value = parsed_value[2:].strip() + parsed_value = parsed_value.strip() else: print value parsed_value = value