Need help for starting 2 scripts with sab

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
D3ltoroxp
Newbie
Newbie
Posts: 9
Joined: December 8th, 2011, 10:31 am

Need help for starting 2 scripts with sab

Post by D3ltoroxp »

Hello Com,

i have found this on https://code.google.com/p/sickbeard/wik ... edSettings, but i need help for the right setup in the config ini for windows system.

So this is what i have ::

Code: Select all

[[tv]]
priority = 0
pp = 3
name = tv
script = sabToSickBeard.py
extra_scripts = \Sick-Beard\autoProcessTV\sabToWizznab.py
newzbin = TV
dir = D:\Usenet\Serien
[[filme]]
priority = 0
pp = 3
name = filme
script = nzbToCouchPotato.py
extra_scripts = \Sick-Beard\autoProcessTV\sabToWizznab.py
newzbin = Filme
dir = D:\Usenet\Filme
Is this the right one ?

I will not change things, because its the htpc and it runs good for now, so will not shoot up my config.
Last edited by D3ltoroxp on December 23rd, 2014, 4:22 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Need help for starting to scripts with sab

Post by shypike »

Is this the sabnzbd.ini file?
If so, the extra_script line isn't going to do anything.
SABnzbd doesn't know that keyword.
Make sure the script are in the scripts folder set in Config-> Folders.
D3ltoroxp
Newbie
Newbie
Posts: 9
Joined: December 8th, 2011, 10:31 am

Re: Need help for starting to scripts with sab

Post by D3ltoroxp »

This is an excerpt from the Wiki
In order to call such a script you need to manually edit your config.ini. Under the General section, edit extra_scripts with the path to your extra script. Multiple scripts can be separated by a | character. Relative paths start in the SB install folder.

eg.

extra_scripts = insideSBrootfolder.sh|/other/path/to/script.py
All my scripts are in the script folder the was setup in the config. It's the path in my example.

Can i put 2 scripts in an windows batch file and select this in sab ?

I need to scripts running.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Need help for starting to scripts with sab

Post by shypike »

You are quoting from SickBeard's wiki, not SABnzbd's.

SABnzbd will show all executable scripts in the scripts folder and allow you to pick one.
Sickbeard assumes you coupled its script to the TV category.
It needs its own script to get a trigger from SABnzbd.
One the script runs, Sickbeard will read its own config.ini file and do whatever is set up there.
You question should have been asked in the SickBeard forum.
D3ltoroxp
Newbie
Newbie
Posts: 9
Joined: December 8th, 2011, 10:31 am

Re: Need help for starting to scripts with sab

Post by D3ltoroxp »

Oh shit somehow I got all messed up. But i'm right here. What can i do in SAB that i can run 2 scripts. The link im quted was from this forum so I was thinking that it is the wiki by sab. Sorry.

But is there a way that i can start 2 scripts with sab ?

With someone like this, but this is for windows and i have test it change things for windows but it would not work. I have to put the path for the to scripts in one file and this i must select, but how is the right formating ?

Code: Select all

#!/usr/bin/env sh
python /Program Files (x86)/SABnzbd/Sick-Beard/autoProcessTV/sabToSickBeard.py "$@"
python /Program Files (x86)/SABnzbd/Sick-Beard/autoProcessTV/sabToWizznab.py "$@"
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Need help for starting 2 scripts with sab

Post by shypike »

You can start two scripts if you wrap them in another script.

Code: Select all

@echo off
call c:\scriptfolder\script1 %1 %2 %3 %4 %5 %6 %7 %8 %9
call c:\scriptfolder\script2 %1 %2 %3 %4 %5 %6 %7 %8 %9
D3ltoroxp
Newbie
Newbie
Posts: 9
Joined: December 8th, 2011, 10:31 am

Re: Need help for starting 2 scripts with sab

Post by D3ltoroxp »

Yeah thank you men thats what i mean and searching for. Christmas is saved ;D

I will test this later and gibe feedback.

For what is %1 %2 %3 %4 %5 %6 %7 %8 %9 ? And i think the end of the file is .bat ?

EDIT:: The following message is coming after download..
The command "c: \ Program 'is misspelled or
could not be found.
The command "c: \ Program 'is misspelled or
could not be found.
This is exactly what i have in the .bat file

Code: Select all

@echo off
call C:\Program Files (x86)\SABnzbd\Sick-Beard\autoProcessTV\sabToSickBeard.py %1 %2 %3 %4 %5 %6 %7 %8 %9
call C:\Program Files (x86)\SABnzbd\Sick-Beard\autoProcessTV\sabToWizznab.py %1 %2 %3 %4 %5 %6 %7 %8 %9
EDIT 2:: If tryed it with .py ending to for the file but than i have syntax error
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Need help for starting 2 scripts with sab

Post by sander »

put double quotes around the path-with-spaces, so:

Code: Select all

call "C:\Program Files (x86)\SABnzbd\Sick-Beard\autoProcessTV\sabToSickBeard.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
HTH
ALbino
Full Member
Full Member
Posts: 214
Joined: October 23rd, 2014, 12:28 am

Re: Need help for starting 2 scripts with sab

Post by ALbino »

D3ltoroxp wrote:For what is %1 %2 %3 %4 %5 %6 %7 %8 %9 ? And i think the end of the file is .bat ?
http://wiki.sabnzbd.org/user-scripts
D3ltoroxp
Newbie
Newbie
Posts: 9
Joined: December 8th, 2011, 10:31 am

Re: Need help for starting 2 scripts with sab

Post by D3ltoroxp »

Oh this is the problem i forgott this " " Now it works thanks men !!
Post Reply