only if director exists

This commit is contained in:
j 2007-08-10 10:45:45 +00:00
parent 92f5ae3f7d
commit babbfffece

View file

@ -157,7 +157,7 @@ class IMDb:
director = self.parseCredits().get('director', None)
if director:
director = director[0]
parsed_value = parsed_value.replace(director, '')
parsed_value = parsed_value.replace(director, '')
if parsed_value.startswith("'s"):
parsed_value = parsed_value[2:].strip()
parsed_value = parsed_value.strip()