Run script only on tv sorting

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
ainatar
Newbie
Newbie
Posts: 4
Joined: November 19th, 2009, 7:42 am

Run script only on tv sorting

Post by ainatar »

I want to run a script only when tv sorting is done. Tv sorting is enabled on the default category. I have enabled a script on that category but I want it to run only when tv sorting is done, is that possible?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Run script only on tv sorting

Post by shypike »

Use a specific category for TV and couple that to Season Sort.
Otherwise let your script test for parameter 5 (%5 or $5), it contains the category.
http://wiki.sabnzbd.org/user-scripts
ainatar
Newbie
Newbie
Posts: 4
Joined: November 19th, 2009, 7:42 am

Re: Run script only on tv sorting

Post by ainatar »

shypike wrote:Use a specific category for TV and couple that to Season Sort.
Otherwise let your script test for parameter 5 (%5 or $5), it contains the category.
http://wiki.sabnzbd.org/user-scripts
Thanks but I don't want it to be coupled to a category. I want it to be run only if tv sorting is done and otherwise not. I want the default category to run the script when tv sorting is done, otherwise not. Or can a category be chosen automatically when tv sorting is done?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Run script only on tv sorting

Post by shypike »

You'll have to add some cleverness to your script.
Like detecting that the title has SxxEyy in it, just like SABnzbd does.
Post Reply