Page 1 of 1

Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 5:45 am
by astrax
hi,
with the last two releases I haven't been able to figure out, ho to set the paths correctly for the auto-Unrar option. I'm using 6.40, build 2057.

What I want to do, and that's how it was before all the extra options for paths etc. were added, is to specify an extraction folder for NZBs, where the extraction folder would be named after the NZB file. No other folders inside that folder, just the extracted file. AND for files directly loaded from a group the same.
I have specified a download folder called "extracted".
Example 1: Download123.nzb gets extracted into C:\extracted\Download123
Example 2: movie file "movie123.avi" from group "alt.movies.test" gets unrared into C:\extracted\alt.movies.test

Right now i have the "problem" that the NZB would also be unrared into a separate group folder, from where the file was originally created.

There's probably an easy solution, by right now I can't seem to find it!
Any hints appreciated! Thanks!

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 7:32 am
by itimpi
Normally you would just set up the Main Download path and (optionally) the NZB Download path and Unrar path using the Edit button against each option to set appropriate variables for folder names.

Maybe if you told us what you want to achieve in a bit more detail, and what the current values of those settings are on your system we can give some more informed advice on how to proceed.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 7:52 am
by astrax
Ok, I'll try ;) English isn't my first language...

These are my current settings:
Main Download Folder: D:\Newsbin\$(GROUP)\
Download folder for downloads from NZB files: [x] D:\Newsbin\$(NZBFILE)\
UnRAR folder: [x] D:\EXTRACT\$(NZBFILE)\$(GROUP)\

What I'm having trouble with, is the UnRAR folder. Where the temporary files go to, I don't care.
With the settings above, with NZB files, I'll get extra folders (sometimes even subfolders, depending on how the file was RAR'd) of the group (from where the NZB was saved) inside the folder named after the NZB. That's what I'd like to avoid.
But if I remove the $(GROUP), files that were downloaded directly from a group (in Newsbin) would be unRAR'd into the main D:\EXTRACT directory. That means, I'd have numerous files in that folder, not knowing where they came from. That's especially annoying when you have duplicates renamed.

Hope this describes my problem a bit better.
Thanks!

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 12:25 pm
by itimpi
OK - I see where your problem comes from. As I understand it your requirement is that if you are Unraring a post from headers, then you want the $(GROUP) variable to be used, but if downloading from NZB files you do not want to use it?

If I am correct then at the moment you cannot do that as far as I know. It sounds as if a new variable something like $(HDRGROUP) to mean only add the group when using headers is needed? Perhaps we need Quade to comment on this?

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 2:41 pm
by astrax
Thanks for the reply.
Yes, that's actually what I want to do! Downloads from NZBs should get a folder named after the NZB and nothing else. And iirc, that's the way it was some versions before.
It may not seem like a big deal, but when you do search, let's say at binsearch.info, and you generate a NZB from that search, with multiple headers/files from different groups, they'd all be unrar'd into different folders.
$(HDRGROUP) sounds like a good idea. Or handling (unRAR options) of NZBs and downloads from headers should/could be separate.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 8:28 pm
by Quade
Well, set the download path to:

<Download>\$(GROUP)\

Set the NZB path to:

<Download>\$(NZBFILE)\

then set the unrar path to

<Unrar>\$(NZBPATH)\

What "NZBPATH" does it take the last segment of the download path and add it to the current path.

So, you should end up with

<Unrar>\Groups\ - for headers
<Unrar\NZB Filename\ - for NZB's.

I've not actually tested this but, it should work. If it doesn't, it needs fixing.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 10:09 pm
by itimpi
That is certainly not intuitive - I would not expect a variable called $(NZBPATH) to apply to none-NZB downloads! A variable name something like $(DOWNLOADPATH) might be more obvious.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sat Sep 29, 2012 11:17 pm
by Quade
It's named NZBPATH for legacy reasons because that's what it was used for in older version.

I agree it's not intuitive.

I've expanded functionality without changing the name.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sun Sep 30, 2012 5:37 am
by astrax
Quade wrote:Well, set the download path to:

<Download>\$(GROUP)\

Set the NZB path to:

<Download>\$(NZBFILE)\

then set the unrar path to

<Unrar>\$(NZBPATH)\

What "NZBPATH" does it take the last segment of the download path and add it to the current path.

So, you should end up with

<Unrar>\Groups\ - for headers
<Unrar\NZB Filename\ - for NZB's.

I've not actually tested this but, it should work. If it doesn't, it needs fixing.


thanks for the suggestion. I just tested this with various downloads, but I doesn't work like you described it.
One download was unRAR'd into a folder named like $(NZBPATH) suggests. The others, strangely enough, were extracted into a folder named "Temp"!
I'm still testing though.

Re: Auto-UnRAR - how do I set up...

PostPosted: Sun Sep 30, 2012 10:03 am
by Quade
Don't forget that RARs have paths inside them too sometimes.

If you can characterize why it doesn't work every time. What's special about the sets that don't follow the rules, I can look into it.

Something to keep in mind is that the changes ONLY apply to newly added files to the download list. Files that already in the download list, already have all their paths set.

Re: Auto-UnRAR - how do I set up...

PostPosted: Thu Oct 04, 2012 10:32 am
by astrax
I just chose random files from random groups and dates. But I'll keep trying and maybe upload a NZB somewhere, so you can test it?