Comments (3)
@zze0s the linked PR won't fix this issue. for the given example, the function introduced in 41811dc will produce the following output:
\.[Ss]\d{1
3}E\d{1
3}\.
also the linked commit will introduce new issues when escaped brackets are used, e.g. \(,txt
will not split the regex at the comma.
i would suggest to either let the user use '|' to separate their expressions or extend the UI so that the user can hit a '+' button and a new input-box will appear to enter another regex.
from autobrr.
@zze0s the linked PR won't fix this issue. for the given example, the function introduced in 41811dc will produce the following output:
\.[Ss]\d{1 3}E\d{1 3}\.
also the linked commit will introduce new issues when escaped brackets are used, e.g.
\(,txt
will not split the regex at the comma.i would suggest to either let the user use '|' to separate their expressions or extend the UI so that the user can hit a '+' button and a new input-box will appear to enter another regex.
Yeah, aware that that PR needs some more work, but it's a start. The current filters are broken with as is if using regex and comma in there, so there's nothing to break in that sense.
Pipes are also valid inside regex patterns so that is not an option to use as a splitter either.
Having multiple inputs would be ideal and I do consider the filters a design flaw in hindsight.
We have talked about building more of a "rules engine" where you can build the expressions with a nice ui or some expression meta language. Doing that is no small task tho so a quick fix for now would be preferred.
from autobrr.
I think the main issue is that the filters currently accept two different kinds of input:
- a simplified format where '*' and '?' can be used as wildcards [1]
- a regex when the 'use regex'-option is set
Ideally the backend would use two different filter-functions, depending of the state of the 'use regex'-option. Luckily that's what the backend already does:
autobrr/internal/domain/filter.go
Lines 302 to 319 in 17e9720
The matchRegex
function could be changed to stop splitting on ,
which breaks the regex. The 'use regex'-option is opt-in and users can and will use |
instead the comma to achieve the same effect. Existing filters could easily be migrated on a version-update by replacing the ,
with a |
for filters where the regex-option is set.
This would make the feature work as intended without breaking anything. No workarounds would be needed.
[1] https://autobrr.com/filters#advanced
from autobrr.
Related Issues (20)
- Memory leak in Settings > IRC > View HOT 4
- Indexer update Base URL for release links HOT 2
- When using Radarr/Sonarr as a client, no seed time is set for the torrent in qbittorrent. HOT 1
- OPS not parsing log score HOT 1
- Can no longer reach login screen when using Synology reverse proxy [v1.41.0] HOT 10
- autobrr don't set Tags for qBittorrent HOT 3
- [FEATURE REQ] Get addtional details about TorrentLeech announces (eg tags) from their API
- [FEATURE REQ] Add new qbittorrent rule -- free_space_on_disk HOT 2
- [FEATURE REQ] SOCKS5 support for irc client HOT 4
- [FEATURE REQ] Raw announce filtering. HOT 19
- [FEATURE REQ] Library/Archive List Tab
- Retry Button for Failed Releases not visible on mobile
- [INDEXER REQ] FinElite HOT 1
- External Script filter runs as many times as there are how many actions in a filter HOT 1
- Telegram Notifications HOT 3
- IRC Rizon Not Working HOT 4
- Perfect FLAC filter doesn't work on OPS HOT 1
- [FEATURE REQ] Add to top/bottom of queue in transmission
- TorrentPathName is missing the slashes on Windows
- Deluge option "move completed to" overwrites save path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autobrr.