Page 1 of 1
RSS reject using regular expressions...
Posted: October 8th, 2009, 10:37 am
by goose23
sabnzbd vers 0.4.12 running on mac os x 10.6.1
OK so am more or less happy with my RSS filters, however there is one part that I just can't get to work.
I want to make a filter that rejects everything but 720p shows - this seems like a simple things but I refuses to function.
The filter I am trying to use is re:[^720p] to discard anything that does not have 720p in the title.
Any thoughts?
Re: RSS reject using regular expressions...
Posted: October 8th, 2009, 1:19 pm
by switch
Re: RSS reject using regular expressions...
Posted: October 8th, 2009, 1:42 pm
by goose23
Sorry - when I try either of these I still get both 720 & non-720 shows.
anyone else?
Re: RSS reject using regular expressions...
Posted: October 8th, 2009, 1:48 pm
by switch
Matching is done sequentially from top to bottom. Make sure the reject filter is the first filter in the list (at the top)
Re: RSS reject using regular expressions...
Posted: October 8th, 2009, 2:14 pm
by goose23
It is - check the screen shots and you can see the output.
- does nothing and
rejects all the 720p programs
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 3:04 am
by shypike
When I look at tvnzb's RSS feed (now at least), I stuff like "blabla.720p.blabla".
Obviously trying to reject using "*-720p-*" will not work, there are no hyphens in the titles.
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 9:15 am
by goose23
I think there might be some confusion - I am not trying to reject 720p files.
As I stated in my original post I am trying to reject everything BUT 720p files.
I know that I could just set a 720p reject filter if I wanted to reject all 720p titles - and the proper way to write "without" in regex is to a caret "^" so the proper reject code should be [^720p] and the filter should be interpreted as "reject if the title does not have 720p" - but it does not work.
So back to my original question - does anyone know of a way to reject everything BUT 720p files
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 9:59 am
by shypike
I don't think you understand the regex rules.
[^720p] does not select or reject "720p", it will reject/select any title with a '7', '2', '0' or 'p' character in it.
To select all 720p posts just use the single rule
Accept: *720p*
For more info see:
http://sabnzbd.wikidot.com/configure-rss
http://www.developer.com/lang/article.p ... Primer.htm
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 10:36 am
by goose23
The problem with using *720p* is that now this selects everything with 720p in the title.
What I want to do is reject anything that doesn't have 720p in the title and from what is left over then run my title filters.
P.S. Forgot about
t will reject/select any title with a '7', '2', '0' or 'p' character in it.
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 3:17 pm
by switch
I had a look about rejecting all items that do not have 720p in the title and I couldn't make a regex that would do it. I would recommend looking at putting it through yahoo pipes.
Re: RSS reject using regular expressions...
Posted: October 9th, 2009, 3:24 pm
by goose23
Thanx switch - glad to see that's it's not just me :-)
Will try the pipes approach
C
Re: RSS reject using regular expressions...
Posted: October 12th, 2009, 9:16 am
by c0ld
be easier to reject xvid.
Re: RSS reject using regular expressions...
Posted: October 12th, 2009, 9:38 am
by goose23
[^(720p)] doesn't work - was one of the things that I had tried.
Got what I wanted by using yahoo pipes - THANKS SWITCH.
Re: RSS reject using regular expressions...
Posted: October 14th, 2009, 2:29 am
by shypike
Nice that yahoo pipes work.
There is a way to do it with filters, but the approach is different:
Accept | *ShowA*720p*
Accept | *ShowB*720p*
Accept | *ShowC*720p*
You need to put all the acceptance criteria in one expression.
Rejecting non-720p as such is impossible.