fix stop words
This commit is contained in:
parent
6df54b5ca2
commit
a79b2a6134
1 changed files with 5 additions and 1 deletions
|
@ -291,6 +291,7 @@ class Imdb(SiteParser):
|
||||||
for t in self.get('alternativeTitles', []):
|
for t in self.get('alternativeTitles', []):
|
||||||
for type in t[1].split('/'):
|
for type in t[1].split('/'):
|
||||||
type = type.strip()
|
type = type.strip()
|
||||||
|
stop_word = False
|
||||||
for key in (
|
for key in (
|
||||||
'complete title',
|
'complete title',
|
||||||
'recut version',
|
'recut version',
|
||||||
|
@ -298,6 +299,9 @@ class Imdb(SiteParser):
|
||||||
'working title',
|
'working title',
|
||||||
):
|
):
|
||||||
if key in type:
|
if key in type:
|
||||||
|
stop_word = True
|
||||||
|
break
|
||||||
|
if stop_word:
|
||||||
continue
|
continue
|
||||||
for regexp in (
|
for regexp in (
|
||||||
"^.+ \(imdb display title\) \(English title\)$",
|
"^.+ \(imdb display title\) \(English title\)$",
|
||||||
|
|
Loading…
Reference in a new issue