The non-persistent NZBID issue will be fixed.
I suggest however a different solution, which will work with all NZBGet versions: instead of saving NZBID on your side let NZBGet save your CouchPotato-ID.
NZBGet has a concept of post-processing parameters. Each download job (nzb-file) in NZBGet has a list of Name=Value-pairs. The post-processing parameters can be set and accessed via RPC.
1) after the nzb-file is added to NZBGet use method "editqueue" to save your ID in the nzb-files pp-parameters. For example "couchpotato_id=123":
Code: Select all
editqueue("GroupSetParameter", 0, "couch potato_id=123", [123])
2) when you check current status using method "listgroups" check in the array "Parameters" for your pp-variable "couchpotato_id".
3) a post-processing script becomes all pp-variables as env. variables (see doc for option <PostProcess>). In this case env. var "NZBPR_couchpotato".
You can use as many pp-parameters as you need.