feat(filters): add support for feed description (#922)

* feat(filters): match description

* feat(filters): support description

* chore: remove match logic for description

* fix: update rss tests
This commit is contained in:
ze0s 2023-05-13 19:33:18 +02:00 committed by GitHub
parent 058627f4e5
commit e5b4ded725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 105 additions and 7 deletions

View file

@ -83,6 +83,9 @@ CREATE TABLE filter
match_release_tags TEXT,
except_release_tags TEXT,
use_regex_release_tags BOOLEAN DEFAULT FALSE,
match_description TEXT,
except_description TEXT,
use_regex_description BOOLEAN DEFAULT FALSE,
scene BOOLEAN,
freeleech BOOLEAN,
freeleech_percent TEXT,
@ -1073,4 +1076,12 @@ ADD COLUMN download_url TEXT;
ADD COLUMN priority INTEGER DEFAULT 0;`,
`ALTER TABLE notification
ADD COLUMN topic text;`,
`ALTER TABLE filter
ADD COLUMN match_description TEXT;
ALTER TABLE filter
ADD COLUMN except_description TEXT;
ALTER TABLE filter
ADD COLUMN use_regex_description BOOLEAN DEFAULT FALSE;`,
}