Page 1 of 1

file naming issue (path)

PostPosted: Sat Aug 01, 2015 4:14 am
by oferlaor
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)?

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 9:20 am
by Quade
$(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.

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 9:42 am
by oferlaor
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".

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 11:29 am
by Quade
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.

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 2:23 pm
by oferlaor
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...

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 3:03 pm
by Quade
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.

Re: file naming issue (path)

PostPosted: Sat Aug 01, 2015 6:42 pm
by oferlaor
I will try the Unrar path on each group and see if that works.