Invert a Filter

's Avatar

itsbebbo

28 Feb, 2012 03:12 PM

Hi

I am using TV Shows with a private torrent site that provides a single RSS feed for HD TV Shows. I have set up TV Shows 2 to use this feed and filter using only the built in filters (I.e. EpisodeName contains xxxx). The only issue I have is that I need to filter out certain items from the results and have been trying to figure out a way to do so without resorting to using Pipes etc.

For example, in the case of CSI (Not Miami or NY) I wish to look for contains "CSI" but not "Miami" OR "NY" or "New York".

Is there a way of doing this with the buit in Filter as there does not seem to be a way to invert individual filters only an overall ALL, ANY or NONE?

Thanks

Mark B

  1. Support Staff 1 Posted by Víctor Pimentel on 04 Mar, 2012 04:46 AM

    Víctor Pimentel's Avatar

    Hi Mark,

    You can achieve that by using several rules and the matches operator (it receives a regular expression. For example, for CSI Miami you can just write:

    episodeName contains CSI
    episodeName contains Miami
    

    For CSI New York is slightly difficult, if you to get both New York and NY:

    episodeName contains CSI
    episodeName matches .*(New York|NY).*
    

    For CSI, the most tricky one:

    episodeName contains CSI
    episodeName matches ((?!(New York|NY|Miami)).)*
    

    I hope I solved your issue :)

  2. 2 Posted by Mark Bebbington on 04 Mar, 2012 09:55 AM

    Mark Bebbington's Avatar

    Thanks Victor

    I didn't realise that the matches field took a RegEx, perhaps I should have tried that. The Miami one I had working fine already in the same manner as you specified.

    Thanks again and keep up the good work!

  3. Víctor Pimentel closed this discussion on 04 Mar, 2012 11:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac