strip director name in english title, confusing since not displayed anyway

This commit is contained in:
j 2007-08-04 12:02:20 +00:00
parent fb38bfc6a1
commit 3c313890f0

View file

@ -153,7 +153,14 @@ class IMDb:
m = re.compile('(.*) \(USA').findall(value) m = re.compile('(.*) \(USA').findall(value)
if m: if m:
parsed_value = m[0] parsed_value = m[0]
parsed_value = parsed_value.split('<br />')[-1].split('(')[0].strip() parsed_value = parsed_value.split('<br />')[-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: else:
print value print value
parsed_value = value parsed_value = value