Page 1 of 1

Pathname creation using variables

PostPosted: Sat Aug 11, 2012 12:42 pm
by mas_astra
As a suggestion, would it be possible to specify a NZB filename "parsing" character to create a folder/subfolder pathname? For example:

Suppose one had a NZB filename such as TVshow Myfavorite Season1.nzb, and had set the download or UnRAR pathname to D:\$(NZBFILE), then the dynamic path generated in the current compilation would be: D:/TVshow Myfavorite Season1/ (am I correct in this assumption, as I currently do not use spaces in my NZB filenames for dynamic path generation?). If one set a "parsing" character such as the ` or ~ character and used that in the NZB filename (TVshow`Myfavorite`Season1.nzb), then that parsing character could be used to create subfolders from the filename, so that in this example instead of having a dynamic path of D:/TVshow Myfavorite Season1/, the dynamic path generated could be: D:/TVshow/Myfavorite/Season1/.

Have you considered anything such as that? I would find it very useful for setting up overnight downloads from several different NZB files having very disparate filenames, so that the output would automatically be routed to the correct folder, saving me having to do moves/copies the next day.

Just a suggestion. :D

Re: Pathname creation using variables

PostPosted: Sat Aug 11, 2012 5:06 pm
by Quade
I'm not too keen to support something like that myself because the variations are endless. That doesn't mean I won't give you the tools so, you can make it happen though. Let me think about it. I was thinking about a LUA script to let you customize the path into anything you want.

Re: Pathname creation using variables

PostPosted: Sat Aug 11, 2012 5:19 pm
by mas_astra
I am not sure what you mean by "the variations are endless". If you mean the endless variation of "parsing" characters, I would agree. But if you (and I do mean YOU!) chose one in particular, it would provide an option for dynamic path creation for those who could find it useful. Just saying. :idea:

I will look into the utility of a LUA script for doing the same sort of thing.

Thanks for your reply :)

BTW. As a long time previous user of Forte Agent, I have to say, it makes me sad :cry: that I didn't start using Newbin years sooner, because it ROCKS as a newsreader!

Re: Pathname creation using variables

PostPosted: Sat Aug 11, 2012 7:33 pm
by Quade
I will look into the utility of a LUA script for doing the same sort of thing.


What I'm suggesting but, wasn't clear on, is that Newsbin will execute a LUA script that you write and the output of the script will become the path.

C:\$(SCRIPT)\

For instance. LUA is basically a little programming language you can embed in a program. I already have it build but, not interfaced with Newsbin yet.