From dddf29a43927ccefb269bc14403625e13619506c Mon Sep 17 00:00:00 2001 From: j Date: Tue, 14 Feb 2017 15:33:23 +0100 Subject: [PATCH] python3 issue with english titles, fixes #3003 --- ox/web/imdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 2547d86..89a326e 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -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: