Page 1 of 1

Run script only on tv sorting

Posted: April 1st, 2012, 3:57 am
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?

Re: Run script only on tv sorting

Posted: April 1st, 2012, 4:55 am
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

Re: Run script only on tv sorting

Posted: April 1st, 2012, 5:13 am
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?

Re: Run script only on tv sorting

Posted: April 1st, 2012, 6:49 am
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.