Post-Processing Scripts

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
kramerdk
Newbie
Newbie
Posts: 5
Joined: January 9th, 2012, 2:52 pm

Post-Processing Scripts

Post by kramerdk »

I'm running the latest version of sabnzbd and sickbeard.

I've got a post-processing script (remax.bat) that I've added to the scripts directory in the config (I defined scripts) and added the file to the directory.
I've looked through the sabnzbd.log file and it appears that the script is being called after processing but the script isn't doing what it is supposed to do. I've run the script from the command prompt with all of the information from the sabnzbd.log and it ran fine.

My guess is that sickbeard is starting its post processing process after sabnzbd is complete. But I don't have anything to verify this.

Can someone point me in a particular direction? Is there someplace else I should be adding the script to take care of this? sabtosickbeard.py?

Thanks,
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post-Processing Scripts

Post by shypike »

Write container script that first calls yours and then SickBeard's.
kramerdk
Newbie
Newbie
Posts: 5
Joined: January 9th, 2012, 2:52 pm

Re: Post-Processing Scripts

Post by kramerdk »

I think sickbeards runs automatically doesn't it?

I'm not entirely sure how I would do that? Can you point me to a discussion that can provide guidance?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post-Processing Scripts

Post by shypike »

kramerdk
Newbie
Newbie
Posts: 5
Joined: January 9th, 2012, 2:52 pm

Re: Post-Processing Scripts

Post by kramerdk »

Shypike,

Thanks for the reply. Is sab calling the sabtosick.exe after completion on its own? I tried moving the download location to something else and having my script move the file to the folder that sb watches but I think I'm doing something wrong.

If I wasn't trying to run a script what happens between sab and sb upon completion?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post-Processing Scripts

Post by shypike »

I'm not very familiar with SickBeard, but I do know that you must run
the SB script to notify SB that the job is complete.
kramerdk
Newbie
Newbie
Posts: 5
Joined: January 9th, 2012, 2:52 pm

Re: Post-Processing Scripts

Post by kramerdk »

If I'm not calling the sb script today and the process work, is it safe to assume that sab isn't doing it and that something must be happening on the sb side?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post-Processing Scripts

Post by shypike »

Maybe SB just watches the "complete" folders?
You should ask on the SB forum...
Post Reply