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

This is the place to help test and discuss Version 6 Beta releases.

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

Postby astrax » Sat Sep 29, 2012 5:45 am

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!
User avatar
astrax
Seasoned User
Seasoned User
 
Posts: 173
Joined: Sun Jan 02, 2011 8:19 am
Location: Germany

Registered Newsbin User since: 12/31/10

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

Postby itimpi » Sat Sep 29, 2012 7:32 am

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.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

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

Postby astrax » Sat Sep 29, 2012 7:52 am

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!
User avatar
astrax
Seasoned User
Seasoned User
 
Posts: 173
Joined: Sun Jan 02, 2011 8:19 am
Location: Germany

Registered Newsbin User since: 12/31/10

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

Postby itimpi » Sat Sep 29, 2012 12:25 pm

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?
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

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

Postby astrax » Sat Sep 29, 2012 2:41 pm

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.
User avatar
astrax
Seasoned User
Seasoned User
 
Posts: 173
Joined: Sun Jan 02, 2011 8:19 am
Location: Germany

Registered Newsbin User since: 12/31/10

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

Postby Quade » Sat Sep 29, 2012 8:28 pm

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.
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: Auto-UnRAR - how do I set up...

Postby itimpi » Sat Sep 29, 2012 10:09 pm

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.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

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

Postby Quade » Sat Sep 29, 2012 11:17 pm

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.
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: Auto-UnRAR - how do I set up...

Postby astrax » Sun Sep 30, 2012 5:37 am

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.
User avatar
astrax
Seasoned User
Seasoned User
 
Posts: 173
Joined: Sun Jan 02, 2011 8:19 am
Location: Germany

Registered Newsbin User since: 12/31/10

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

Postby Quade » Sun Sep 30, 2012 10:03 am

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.
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: Auto-UnRAR - how do I set up...

Postby astrax » Thu Oct 04, 2012 10:32 am

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?
User avatar
astrax
Seasoned User
Seasoned User
 
Posts: 173
Joined: Sun Jan 02, 2011 8:19 am
Location: Germany

Registered Newsbin User since: 12/31/10


Return to Newsbin Version 6 Beta Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron