Alerts blacklist regex patterns #2

Closed
opened 2024-01-11 14:37:15 +00:00 by boiii · 0 comments

There may or may not be a studio called Legalporno Analvids Pornbox that absolutely spams scenes everyday, so having a list of regex patterns per alert would help to filter out scenes from studios that release more niches than you would like.

Example

Create new alert, setting studios and whatever

Add patterns

Behind the scenes
Prolapse

Would end up being (roughly)

patterns = [/Behind the scenes/, /Prolapse/]
scenes.filter(scene => !patterns.some(x => x.test(scene.title)))

You get the idea

Issues

  • Maybe limit max patterns per alert? 100?
  • Do case insensitive regex by default? Downsides?

Originally posted by @boiii in /DebaucheryLibrarian/traxxx/issues/46#issue-66

There may or may not be a studio called ~~Legalporno~~ ~~Analvids~~ Pornbox that absolutely spams scenes everyday, so having a list of regex patterns per alert would help to filter out scenes from studios that release more niches than you would like. #### Example Create new alert, setting studios and whatever Add patterns ``` Behind the scenes Prolapse ``` Would end up being (roughly) ```javascript patterns = [/Behind the scenes/, /Prolapse/] scenes.filter(scene => !patterns.some(x => x.test(scene.title))) ``` You get the idea #### Issues - Maybe limit max patterns per alert? 100? - Do case insensitive regex by default? Downsides? _Originally posted by @boiii in /DebaucheryLibrarian/traxxx/issues/46#issue-66_
boiii closed this issue 2024-02-05 21:55:38 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: DebaucheryLibrarian/traxxx-web#2
No description provided.