Filter Help with Extension in File Name

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Filter Help with Extension in File Name

Postby Magoo32 » Mon Feb 06, 2012 4:58 pm

Have some filters setup to reject unrared video files, the problem I'm running into is the if its get's posted with the extension somewhere else in the name it also get rejected by the filter, Is there a way around this? I'm not sure how accomplish this.

Example:
filename.wmv <--- Don't want this usually a little sample , even though it doesn't say sample, Filter rejects it no problem.

filename-wmv.1080p.rar <-----Filter also rejects this.
or

filename.bluray.wmv.rar <---- Filter also rejects this.

Thanks!
Magoo
Magoo32
Occasional Contributor
Occasional Contributor
 
Posts: 48
Joined: Sun Nov 28, 2004 3:59 am

Registered Newsbin User since: 02/17/04

Re: Filter Help with Extension in File Name

Postby Quade » Mon Feb 06, 2012 5:19 pm

Subject Filter:

Well, if the files are properly posted yEncs, the filename will always end with a " so, you could

Subject Accept:

"[.]rar["]" - don't include the outer quotes.

What that means is "only accept subjects that contain dot rar followed by a quote".,

And/Or

Filename filters:

Filename Reject

"[.]wmv"

Filename filters apply after the download starts. Subject filters are more efficient. You might want to set both.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45013
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Filter Help with Extension in File Name

Postby Magoo32 » Mon Feb 06, 2012 5:44 pm

I'm currently using "[.]wmv" in subject reject and filename reject (Global) but then if the word wmv is anywhere else its gets rejected.

I will try adding the "[.]rar["]" see if that help's.

I also notice that if the subjects reject filter blocks somthing it doesnt show up in the log.
Magoo32
Occasional Contributor
Occasional Contributor
 
Posts: 48
Joined: Sun Nov 28, 2004 3:59 am

Registered Newsbin User since: 02/17/04

Re: Filter Help with Extension in File Name

Postby dexter » Mon Feb 06, 2012 5:56 pm

Magoo32 wrote:I'm currently using "[.]wmv" in subject reject and filename reject (Global) but then if the word wmv is anywhere else its gets rejected.

I will try adding the "[.]rar["]" see if that help's.

I also notice that if the subjects reject filter blocks somthing it doesnt show up in the log.


Remove the "[.]wmv" from the subject reject filter. That's catching too much. The one in the filename reject will work as a stopgap.

Items filtered by subject will not get listed in the logging tab as rejected. You can turn off the filters in the post list tab (using the icon that looks like a power symbol) and anything that would have been filtered will be shown with a "R" on the left side with the filter reason in the Status. This is a good way to test what the filter profile is catching.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Re: Filter Help with Extension in File Name

Postby Quade » Mon Feb 06, 2012 6:04 pm

Remember, I'm suggesting "Subject Accept" for:

"[.]rar["]"
"[.]rar[ ]" (space)


It'll only show files that match this. The second one would catch words that end in "rar" followed by a space. That might help with non-yenc posts and/or yEnc posts that don't follow the format.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45013
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Filter Help with Extension in File Name

Postby Magoo32 » Mon Feb 06, 2012 6:06 pm

Thanks for the quick help guys! Working Perfectly Now, just tested with a bunch of .nzb's :D

Great Support,
Magoo
Magoo32
Occasional Contributor
Occasional Contributor
 
Posts: 48
Joined: Sun Nov 28, 2004 3:59 am

Registered Newsbin User since: 02/17/04


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 3 guests