file naming issue (path)

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

file naming issue (path)

Postby oferlaor » Sat Aug 01, 2015 4:14 am

I use both NZBs and other means of automatic download.

So, there are two parameters here:

$(NZBFILE)
and
$(FILENAME)

However, what I actually need is a smart one that combines them both.

i.e., something like
$(NZBORFILENAME)= IF
$(NZBFILE)!="" then $(FILENAME) else
$(NZBFILE)

What would $(NZBFILE) do if there is no NZB and the download was initiated by automatic downloads (with regex filters)?
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: file naming issue (path)

Postby Quade » Sat Aug 01, 2015 9:20 am

$(NZBFILE) will be empty if there's no NZB File.

You know you can set per group and per topic pathing right? Meaning if you auto-download groups you can set paths just for these groups.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44866
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: file naming issue (path)

Postby oferlaor » Sat Aug 01, 2015 9:42 am

of course, but that's not what I mean.

Is it possible to modify $(NZBFILE) so that it includes the file name when there is no NZB file?

Or maybe change it to another parameter like I suggested?

Right now, I am forced to use subdirectories in order to make this "kind of work".
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: file naming issue (path)

Postby Quade » Sat Aug 01, 2015 11:29 am

You could use a post unrar script to move the files anyplace you want too. There's no mechanism to swap the paths around based on the existence of a variable.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44866
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: file naming issue (path)

Postby oferlaor » Sat Aug 01, 2015 2:23 pm

I'm perfectly happy with the mechanism you have today.

The only issue I have is the situation where $(NZBFILE) is empty. In that case, I need it to contain something (e.g., $(FILENAME) ) so that the files do not get extracted to the root directory...
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06

Re: file naming issue (path)

Postby Quade » Sat Aug 01, 2015 3:03 pm

I'm not getting why you can't set a "per group" download path to include $(FILENAME). If you're using search watch lists, you can do the same thing. Per watch download path.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44866
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: file naming issue (path)

Postby oferlaor » Sat Aug 01, 2015 6:42 pm

I will try the Unrar path on each group and see if that works.
oferlaor
Seasoned User
Seasoned User
 
Posts: 416
Joined: Sun Oct 08, 2006 11:02 am

Registered Newsbin User since: 04/21/06


Return to Newsbin Version 6 Beta Support

Who is online

Users browsing this forum: mimauk and 2 guests