Page 1 of 1

Unrar filter delete

PostPosted: Fri Apr 15, 2016 2:24 am
by oferlaor
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?

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 9:14 am
by Quade
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.

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 1:38 pm
by oferlaor
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.

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 2:33 pm
by Quade
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.

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 3:15 pm
by oferlaor
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?

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 3:25 pm
by Quade
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"?

Re: Unrar filter delete

PostPosted: Fri Apr 15, 2016 5:43 pm
by oferlaor
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

Re: Unrar filter delete

PostPosted: Tue Apr 19, 2016 2:09 pm
by oferlaor
Is the unrar delete supposed to delete anything that is accepted or rejected by the file name filters?

Re: Unrar filter delete

PostPosted: Tue Apr 19, 2016 3:28 pm
by Quade
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.

Re: Unrar filter delete

PostPosted: Tue Apr 19, 2016 3:41 pm
by oferlaor
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.

Re: Unrar filter delete

PostPosted: Tue Apr 19, 2016 4:02 pm
by Quade
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.