Skip to content

Commit

Permalink
feat: a few more spam rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Jan 9, 2023
1 parent f2c5e3a commit 39ace9e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
49 changes: 49 additions & 0 deletions cleanit/data/cleanit-no-spam.pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ templates:
- default
priority: 1000
languages: pt
- &no-spam-regex-multiline-ignorecase
type: regex
flags:
- ignorecase
- multiline
tags:
- no-spam
- default
priority: 1000
languages: pt

rules:
drop-ads-and-credits[no-spam:pt]:
Expand All @@ -16,13 +26,21 @@ rules:
- 'tradutor:'
- 'tradução:'
- 'legendas:'
- 'legenda:'
- 'sua melhor aposta em legendas'
- 'tradução e legendas'
- 'legendas e sincronização'
- 'sincronia das legendas'
- 'download de legendas'
- 'legendas.com'
- 'portuguese - br'
- 'legende conosco'
- 'avalie esta legenda'
- '- legenda'
- 'legenda em'
- 'legenda por'
- 'legenda original'
- 'ajude-nos e torne-se membro'
examples:
- 'Tradutora: FooBar'
- 'Tradutor: FooBar'
Expand All @@ -35,3 +53,34 @@ rules:
- '<b>Download de Legendas'
- 'www.abclegendas.com'
- 'Portuguese - BR'
- 'Legenda em português: Foobar'
- 'Legenda original: foobar'
- 'Legenda por: foobar'
- |
<i>Legende conosco!
foo@bar.com</i>
- |
Por favor, avalie esta legenda em www.foo.bar/abcd
Ajude outros usuários a escolher as melhores legendas.
- |
<font color="#f1fc27"><b>- Legenda -
Foo + bar</b></font>
- |
Ajude-nos e torne-se membro VIP
para remover todos os anúncios do % url%
- |
<b>Legenda:
Foo | Bar</b>
drop-ads-and-credits-regex-exact[no-spam:pt]:
<<: *no-spam-regex-multiline-ignorecase
patterns:
- '^legenda$'
- '^<.+>legenda$'
examples:
- |
Legenda
- FooBar -
- |
<font color=#FFFF00><b>Legenda
- Foobar -</b></font>
4 changes: 4 additions & 0 deletions cleanit/data/cleanit-no-spam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rules:
- 'legendastv'
- 'legendas tv'
- 'subsland'
- 'subpack'
examples:
- 'contact www.OpenSubtitles.org today'
- 'to remove all ads from www.OpenSubtitles.org'
Expand Down Expand Up @@ -58,3 +59,6 @@ rules:
- |
iSubDB.com - fast, modern, simple
Subtitles search by drag & drop
- |
Legenda Subpack por:
FOOBAR
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cleanit"
version = "0.4.5"
version = "0.4.6-dev"
description = "Subtitles extremely clean"
authors = [
"Rato",
Expand Down

0 comments on commit 39ace9e

Please sign in to comment.