Page 1 of 1
Need help for starting 2 scripts with sab
Posted: December 22nd, 2014, 2:10 pm
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.
Re: Need help for starting to scripts with sab
Posted: December 22nd, 2014, 4:05 pm
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.
Re: Need help for starting to scripts with sab
Posted: December 23rd, 2014, 3:30 am
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.
Re: Need help for starting to scripts with sab
Posted: December 23rd, 2014, 3:56 am
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.
Re: Need help for starting to scripts with sab
Posted: December 23rd, 2014, 4:02 am
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 "$@"
Re: Need help for starting 2 scripts with sab
Posted: December 23rd, 2014, 4:42 am
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
Re: Need help for starting 2 scripts with sab
Posted: December 23rd, 2014, 7:02 am
by D3ltoroxp
Yeah thank you men thats what i mean and searching for. Christmas is saved
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
Re: Need help for starting 2 scripts with sab
Posted: December 23rd, 2014, 11:40 am
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
Re: Need help for starting 2 scripts with sab
Posted: December 23rd, 2014, 2:07 pm
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
Re: Need help for starting 2 scripts with sab
Posted: December 23rd, 2014, 2:26 pm
by D3ltoroxp
Oh this is the problem i forgott this " " Now it works thanks men !!