theotherp/nzbhydra2

Support regex in quick filters

Closed this issue · 0 comments

What do you want to happen?

I want to create a quick filter to filter out single episodes.

I tried several versions of this to see if something worked but I assume quick filters do not support regex.
SEASONS=/(season)|(S[0-9][0-9][^E])/

If not clear, why do you want it?

The only pattern to detect if a release contains an episode seems to be: S02E06 and filtering the E is not viable thus the need for the regex.
Using season or complete can work but misses some releases not named like that.
Using the season field in the top indexer search misses compilations like S01-S03. Plus when downloading an entire series I find it quicker to search for all the seasons once and then filter those results than to search all indexers for season 1 first, then season 2, etc.

I have been testing /(season)|(S[0-9][0-9][^E])/ as a normal filter and it works but typing/copying every time kinda defeats the purpose

Alternatives

A quick filter that just types the text into the filter input box. This way regex doesn't need to be implemented in quick filters plus let's users create filters that can be edited on the fly. This could be signaled with : instead of =.
My use case would be this: S1:/(season)|(S01[^E])/. After the pattern is in the input field the season number could be easily edited to S02. This I'm sure would have more use cases.