use imdb display title before other titles, dont add internationalTitle if its the same as title

This commit is contained in:
j 2012-09-22 22:44:08 +02:00
parent d29f9e3dc8
commit b5b480e3f2

View file

@ -299,6 +299,8 @@ class Imdb(SiteParser):
"^.+ \(.+\) \(English title\)$",
"^USA$",
"^UK$",
"^USA \(imdb display title\)$",
"^UK \(imdb display title\)$",
"^USA \(.+\)$",
"^UK \(.+\)$",
"^Australia \(.+\)$",
@ -321,6 +323,11 @@ class Imdb(SiteParser):
for t in ('title', 'internationalTitle'):
if t in self:
self[t] = cleanup_title(self[t])
if 'internationalTitle' in self and \
self.get('title') == self['internationalTitle']:
del self['internationalTitle']
if 'alternativeTitles' in self:
alt = {}
for t in self['alternativeTitles']: