Browse Source

Remove ignored words which are part of title. close #1123

pull/1143/merge
Ruud 13 years ago
parent
commit
342d31b48a
  1. 6
      couchpotato/core/plugins/searcher/main.py

6
couchpotato/core/plugins/searcher/main.py

@ -317,14 +317,14 @@ class Searcher(Plugin):
return False
ignored_words = splitString(self.conf('ignored_words').lower())
blacklisted = list(set(nzb_words) & set(ignored_words))
blacklisted = list(set(nzb_words) & set(ignored_words) - set(movie_words))
if self.conf('ignored_words') and blacklisted:
log.info2("Wrong: '%s' blacklisted words: %s" % (nzb['name'], ", ".join(blacklisted)))
return False
pron_tags = ['xxx', 'sex', 'anal', 'tits', 'fuck', 'porn', 'orgy', 'milf', 'boobs', 'erotica', 'erotic']
for p_tag in pron_tags:
if p_tag in nzb_words and p_tag not in movie_words:
pron_words = list(set(nzb_words) & set(pron_tags) - set(movie_words))
if pron_words:
log.info('Wrong: %s, probably pr0n', (nzb['name']))
return False

Loading…
Cancel
Save