RuudBurger/CouchPotatoServer — pull request #874 by clinton-hall (2012-09-26 05:49:51+00:00)
Title: Only call SABnzbd check status once per rename cycle

First attempt at anything like this. So I understand if this is not up to your standard ;)

Main thing is I have tried to remove the checking of the queue and history from the downloader as this is called from the renamer Check Snatched for EVERY release with snatched status.

Instead if snatched status exists I have set this to perform a queue and history poll for SABnzbd, before the "for" loop and return the complete queue and history json data.

All checking within this data for nzbname is done within the "for" loop, inside the renamer CheckSnatched.

I have also created a new event "download.remove" to remove failed downloads from SABnzbd if this option is enabled.

I am sure I have missed something, but it seems like a logical place to start if you haven't already thought of a better way?

Should address issues #871