From a79b2a6134ce5c004f16112b0d4f03628920f8a7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 22 Sep 2012 22:56:10 +0200 Subject: [PATCH] fix stop words --- ox/web/imdb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index fbd0441..ce70fda 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -291,6 +291,7 @@ class Imdb(SiteParser): for t in self.get('alternativeTitles', []): for type in t[1].split('/'): type = type.strip() + stop_word = False for key in ( 'complete title', 'recut version', @@ -298,7 +299,10 @@ class Imdb(SiteParser): 'working title', ): if key in type: - continue + stop_word = True + break + if stop_word: + continue for regexp in ( "^.+ \(imdb display title\) \(English title\)$", "^International \(English title\)$",