Unrar filter delete

Technical support and discussion of Newsbin Version 6 series.

Unrar filter delete

Postby oferlaor » Fri Apr 15, 2016 2:24 am

I'm using 6.62 and trying to define a file based unrar delete filter.

The idea is to delete directories and files that either start with "sample." Or have ".sample." In them.

I created a new filter group with two filters in them. The first is accept if file name contains ^.*\.sample\..* And the second accords if file name contains ^sample\..*

the first filter group on my list works well and I can also test with names against it.

The problem is that the new filter group test feature tests only work on the first filter group not the one I am in.

I assumed this was a bug in the filter screen so I tried it anyway - I added that filter group to the post unrar delete. So, it should now delete anything that matches those file names.

The problem is that it deletes valid content as well (that doesn't meet the filter rules)...

am I doing it wrong or is there a bug here?
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby Quade » Fri Apr 15, 2016 9:14 am

Why not "filename reject" and add "sample" all by itself to it? You want some samples but not others?

The filters won't delete folders, just files.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Unrar filter delete

Postby oferlaor » Fri Apr 15, 2016 1:38 pm

Tried that but I can't make it work properly either. I added a reject filter by file name to the same download filter I use.

My concern is that this will screw up the autopar since the same files are part of the same par2 set.
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby Quade » Fri Apr 15, 2016 2:33 pm

Post unrar filters happen "post unrar" meaning after autopar completes. I'd add it to the post-unrar filter. You can filter anything you want after the unrar.

Most samples have their own PAR files so it's probably safe to filter all samples.

I'm unclear how you're trying to filter though. You can assign filters to:

- NZB Loading
- Downloading Files
- After UnRAR.

If you use NZB's I'd "Subject Reject" "sample" for any NZB Files you load. Otherwise I'd add "sample" to the post unrar filter which applies after unrar. Just keep in mind that "Download" and "Post UnRAR" use filename filters. NZB Filters use "Subject Filters" because the filename isn't really known at the point of NZB Loading.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Unrar filter delete

Postby oferlaor » Fri Apr 15, 2016 3:15 pm

I automatically download headers for certain groups and filter them through a download filter.

I added a reject option to that filter.

What I would like to do ideally is to use the post ear filter delete but as I said, it does not seem to work for me.

The first filter profile seems to work but the third (I have 3) for the unrar filter refuses to work...be m not sure if there's a bug due to a few filter groups or if my filters are wrong.

I now made it simple. The filter group accepts file names containing "sample\." And also "\.sample\." (No quotes).

Is that correct? Should that configuration work?
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby Quade » Fri Apr 15, 2016 3:25 pm

I added a reject option to that filter.


What kinda "reject"? Filename or Subject? You'll want to use subject filters at the header level. You can add it to the filename filters too but primarily to filter headers you use a "Subject" filter.

Than I'd add a "Post UnRAR" filter in case the PAR files re-build SAMPLE files during repair.

What I would like to do ideally is to use the post ear filter delete but as I said, it does not seem to work for me.


Did you actually tell it to use the "Post UnRAR" filter? You set it in the autopar options and you ONLY use filename filters.

"sample\." And also "\.sample\."


Why not "sample"?
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Unrar filter delete

Postby oferlaor » Fri Apr 15, 2016 5:43 pm

In the download filter the reject is subject based. It's at the end of the list (does that make a difference?).

On the unrar Delete filter I added a file name based accept using the same rules and activated it unde the autopar menu.

I don't want to delete the word sample. The two cases I found was that thefile either starts with the word sample followed by a dot or at the end so that both sides of the sample word have a dot.

The forum has no image attachment but I can email you the screenshot. Not sure where to send them
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby oferlaor » Tue Apr 19, 2016 2:09 pm

Is the unrar delete supposed to delete anything that is accepted or rejected by the file name filters?
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby Quade » Tue Apr 19, 2016 3:28 pm

I've only ever tried rejecting.

Accept is somewhat dangerous because it should reject anything that doesn't match. I'll have to try an accept filter.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Unrar filter delete

Postby oferlaor » Tue Apr 19, 2016 3:41 pm

Strange. The wording on the settings screen led me to believe that an accept filter was what would delete the file. I will try that now.
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: Unrar filter delete

Postby Quade » Tue Apr 19, 2016 4:02 pm

Accept should cause anything that DOESN'T match to delete.

Reject will delete anything that DOES match. You can be using both at the same time too.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 5 guests