strip director name in english title, confusing since not displayed anyway
This commit is contained in:
parent
fb38bfc6a1
commit
3c313890f0
1 changed files with 8 additions and 1 deletions
|
@ -153,7 +153,14 @@ class IMDb:
|
|||
m = re.compile('(.*) \(USA').findall(value)
|
||||
if m:
|
||||
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:
|
||||
print value
|
||||
parsed_value = value
|
||||
|
|
Loading…
Reference in a new issue