Pathname creation using variables

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

Pathname creation using variables

Postby mas_astra » Sat Aug 11, 2012 12:42 pm

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
mas_astra
Occasional Contributor
Occasional Contributor
 
Posts: 33
Joined: Fri Aug 10, 2012 12:05 pm

Registered Newsbin User since: 02/10/11

Re: Pathname creation using variables

Postby Quade » Sat Aug 11, 2012 5:06 pm

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.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Pathname creation using variables

Postby mas_astra » Sat Aug 11, 2012 5:19 pm

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!
mas_astra
Occasional Contributor
Occasional Contributor
 
Posts: 33
Joined: Fri Aug 10, 2012 12:05 pm

Registered Newsbin User since: 02/10/11

Re: Pathname creation using variables

Postby Quade » Sat Aug 11, 2012 7:33 pm

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.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to Newsbin Version 6 Beta Support

Who is online

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