RSS reject using regular expressions...
RSS reject using regular expressions...
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?
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...
You could use either:
or
Code: Select all
*-720p-* Code: Select all
re:\W720p\WRe: RSS reject using regular expressions...
Sorry - when I try either of these I still get both 720 & non-720 shows.
anyone else?
anyone else?
Re: RSS reject using regular expressions...
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...
It is - check the screen shots and you can see the output.
- does nothing and rejects all the 720p programs
Code: Select all
*-720p-*Code: Select all
re:\W720p\W
Last edited by switch on October 8th, 2009, 2:22 pm, edited 1 time in total.
Re: RSS reject using regular expressions...
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.
Obviously trying to reject using "*-720p-*" will not work, there are no hyphens in the titles.
Re: RSS reject using regular expressions...
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
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...
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
[^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...
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
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.
Last edited by goose23 on October 9th, 2009, 10:41 am, edited 1 time in total.
Re: RSS reject using regular expressions...
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...
Thanx switch - glad to see that's it's not just me :-)
Will try the pipes approach
C
Will try the pipes approach
C
Re: RSS reject using regular expressions...
be easier to reject xvid.
Last edited by c0ld on October 12th, 2009, 9:43 am, edited 1 time in total.
Re: RSS reject using regular expressions...
[^(720p)] doesn't work - was one of the things that I had tried.
Got what I wanted by using yahoo pipes - THANKS SWITCH.
Got what I wanted by using yahoo pipes - THANKS SWITCH.
Re: RSS reject using regular expressions...
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.
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.


