New post-unrar scripting support in 6.50.

Technical support and discussion of Newsbin Version 6 series.

New post-unrar scripting support in 6.50.

Postby Quade » Thu Mar 28, 2013 7:17 pm

New in 6.50 is post-unrar scripting support.

1 - In the options, you specify which file you want to run after the unrar. I've only tested CMD files but, exe files should work too. The script has to live in the scripts folder in the data folder.

2 - The options for the script are fully quoted and are in the command line.

Code: Select all
   
1   The final directory of the job (full path)
2   Blank
3   Subject
4   first unrar filename
5   blank
6   Group that the NZB was posted in e.g. alt.binaries.x
7   Status of post processing. 0 = OK


script.cmd "X:\Download" "" "This is the subject "blabla.srs" "" "alt.binaries.test" "0"


Everything is quoted to handle embedded spaces.

In addition to this. The complete list of input files (rars normally) is written to the "Input.txt" file also in the scripts folder and all the filenames for files inside the rar set are written to "Output.txt". These two files will live until the next unrar, then get overwritten.

3 - Newsbin will not unrar the next fileset until the script returns. So, you can do as much processing as you want in this script.

4 - You can enable logging and it'll write a log file to the scripts folder. Any output from the script is written to the log file.

As for what you do in the script, the sky is the limit. Move files, make copies of the RARs before Newsbin deletes them. Delete unwanted files. Run a virus check.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: New post-unrar scripting support in 6.50.

Postby ozzii » Fri Mar 29, 2013 4:38 am

Option like in SAB...

Thanks.
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Re: New post-unrar scripting support in 6.50.

Postby Quade » Fri Mar 29, 2013 7:14 am

Yeah, basically you should be able to feed it SAB post UnRAR scripts. The input/output file list are unique but, shouldn't break existing SAB Scripts. The blank fields are for information I just don't have right now but, might in the future.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: New post-unrar scripting support in 6.50.

Postby mkanet » Wed Apr 17, 2013 2:26 pm

Thank you. I've been waiting a long time for this! I really appreciate it.
mkanet
Active Participant
Active Participant
 
Posts: 98
Joined: Mon Jan 29, 2007 2:16 pm

Re: New post-unrar scripting support in 6.50.

Postby deloppoled » Thu Jul 17, 2014 8:53 pm

I absolutely love this feature, thank you for adding it!
User avatar
deloppoled
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Sun Jan 05, 2014 2:34 am

Re: New post-unrar scripting support in 6.50.

Postby Quade » Thu Jul 17, 2014 9:35 pm

Currently Newsbin works as a "black hole" for SB. I've been working on integrating it more directly so, Newsbin can tell SB when a download fails so, it can pick another NZB to try.

It won't be in 6.52 but, it's coming.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

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