OK, Reading all this and all related things made me few things to conclude.
- Drone Factory is very useful, quick to setup, slice food, blend, sort, cook, serve on plate, … but occasionally cut few fingers and mix them in smoothy so you can’t be sure until you try the end product.
- It will go
- I really need it due the facts/settings/stated below in appendix
- Solution needs to be made.
so regarding above statements:
- Currently I can’t live without it. I’m missing only few fingers (read episodes over the time I use Sonarr) as I carefully used/set my clients and scripts to minimize probability of that happening. eg. I have Download client setup but do not use it as I use DirectDownload client which is neither NZB not Torrent.
- Huh, well even hard at times it was loved and I will come to funeral
- Ahh, read appendix
- Ok. Solution found but needs to be polished.
Appendix:
I have custom made client that handles both DL + Unpack + Move to Join folder (eg. drone folder) and say I’m done. Just wrote Jscript to tell me that, so I have an DL client Event that contain path+filename where the file is saved, but do not know which show it belongs simply can’t know that and this even I can use to trigger downloadedepisodesscan. Hooray, 50% done.
I need help for next 50 percent which involves making Jscript that will work both on Win and linux.
I was thinking about something like this:
// Sending and receiving data in JSON format using POST mothod
//
var xhr = new XMLHttpRequest();
var url = "url";
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-type", "application/json");
xhr.setRequestHeader("X-Api-Key","MyKey");
xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) {
var json = JSON.parse(xhr.responseText);
}
};
var data = JSON.stringify({"name": "downloadedepisodesscan","path": "/serverA/var/temp/Download.S01E01","importMode":"Move","downloadClientId":"{infohash}"});
xhr.send(data);
So anyone help Please?