diff --git a/Disable Drone Factory Folder Scanning.md b/Disable Drone Factory Folder Scanning.md new file mode 100644 index 0000000..52a16c0 --- /dev/null +++ b/Disable Drone Factory Folder Scanning.md @@ -0,0 +1,27 @@ +**WARNING** Only follow these instructions if you understand the risks of doing so and know how to write and enable a post processing script in your download client + +## Disable Drone Factory Folder Scanning ## + +You can disable drone factory folder scanning via the advanced setting "Drone Factory Interval" on the download client settings page, by setting it to zero. + +## Post Processing Script ## + +You can configure your download client to run a script to send a command to NzbDrone's API instructing it to run a scan on the drone factory folder. + +The script will need to send a POST with a JSON body as described here: [Command](Command#downloadedepisodesscancommand) + +## Example Scripts ## + +#### curl #### +```` +curl http://localhost:8989/api/command -X POST -d '{"name": "downloadedepisodesscan"}' --header "X-Api-Key:YOUR_API_KEY_GOES_HERE" +```` + +#### PowerShell #### +```` +$url = "http://8989/api/command" +$json = "{ ""name"": ""downloadedepisodesscan"" }" + +Write-Host "Publishing update $version ($branch) to: $url" +Invoke-RestMethod -Uri $url -Method Post -Body $json -Headers @{"X-Api-Key"="YOUR_API_KEY_GOES_HERE"} +```` diff --git a/Home.md b/Home.md index 3032d5e..39303a9 100644 --- a/Home.md +++ b/Home.md @@ -8,6 +8,7 @@ - [[Reverse Proxy]] - [[Release Branches]] - [[Quality Profiles]] +- [[Disable Drone Factory Folder Scanning]] ### More Information ### - [[Failed Download Handling]]