python3 issue with english titles, fixes #3003
This commit is contained in:
parent
f1fea0f939
commit
dddf29a439
1 changed files with 2 additions and 2 deletions
|
@ -423,7 +423,7 @@ class Imdb(SiteParser):
|
|||
'USA', 'UK', 'United States', 'United Kingdom',
|
||||
'Australia', 'New Zealand'
|
||||
)
|
||||
if not filter(lambda c: c in english_countries, self.get('country', [])):
|
||||
if not list(filter(lambda c: c in english_countries, self.get('country', []))):
|
||||
regexps += [
|
||||
"^[^(]+ \(English title\)$",
|
||||
"^.+ \(.+\) \(English title\)$",
|
||||
|
@ -440,7 +440,7 @@ class Imdb(SiteParser):
|
|||
for regexp in regexps:
|
||||
for type in types:
|
||||
if re.compile(regexp).findall(type):
|
||||
#print types[type], type
|
||||
#print(types[type], type)
|
||||
self['internationalTitle'] = types[type]
|
||||
break
|
||||
if 'internationalTitle' in self:
|
||||
|
|
Loading…
Reference in a new issue