RSS reject using regular expressions...

Feel free to talk about anything and everything in this board.
Post Reply
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

RSS reject using regular expressions...

Post 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?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: RSS reject using regular expressions...

Post by switch »

You could use either:

Code: Select all

*-720p-* 
or

Code: Select all

re:\W720p\W
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post by goose23 »

Sorry - when I try either of these I still get both 720 & non-720 shows.

anyone else?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: RSS reject using regular expressions...

Post 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)
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post by goose23 »

It is - check the screen shots and you can see the output.

Code: Select all

*-720p-*
- does nothing and

Code: Select all

re:\W720p\W
rejects all the 720p programs
Last edited by switch on October 8th, 2009, 2:22 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS reject using regular expressions...

Post 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.
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS reject using regular expressions...

Post 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
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post 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.
Last edited by goose23 on October 9th, 2009, 10:41 am, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: RSS reject using regular expressions...

Post 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.
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post by goose23 »

Thanx switch - glad to see that's it's not just me :-)

Will try the pipes approach

C
c0ld
Newbie
Newbie
Posts: 48
Joined: March 30th, 2009, 6:28 am

Re: RSS reject using regular expressions...

Post by c0ld »

be easier to reject xvid.
Last edited by c0ld on October 12th, 2009, 9:43 am, edited 1 time in total.
goose23
Newbie
Newbie
Posts: 7
Joined: October 8th, 2009, 10:22 am

Re: RSS reject using regular expressions...

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS reject using regular expressions...

Post 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.
Post Reply