Updated Custom Post Processing Scripts (markdown)

master
hotio 7 years ago
parent dd7bdfc664
commit f13ac54ddd

@ -2,7 +2,7 @@ If you're looking to trigger a custom script in your download client to tell Rad
### Overview ###
Radarr can execute a custom script when new movies are imported or a series is renamed, depending on the which action occurred the parameters will be different. Parameters are passed to the script through environment variables (allowing for more flexibility in what we send to the script and not having to worry about a particular order). In all cases the Environment Variables Radarr sends will be prefixed with `Radarr` and converted to lowercase, the `Movie_Id` will appear as `radarr_movie_id`.
Radarr can execute a custom script when new movies are imported or renamed, depending on which action occurred the parameters will be different. Parameters are passed to the script through environment variables (allowing for more flexibility in what we send to the script and not having to worry about a particular order). In all cases the Environment Variables Radarr sends will be prefixed with `Radarr` and converted to lowercase, the `Movie_Id` will appear as `radarr_movie_id`.
### Environment Variables ###
@ -55,7 +55,8 @@ The information from Radarr will not be added to $_ENV as one might expect but s
Sample script using the Radarr environment variables to create EDL files for all episodes is [here](https://gist.github.com/RedsGT/e1b5f28e7b5b81e1e45378151e73ba5c).
Sample script to have Plex scan destination folder only and "analyze deeply" the file. PSQLite needed to query the plex DB. Adjust folder locations to match your setup.
```
```powershell
# This script will add the movie to plex and scan the destination folder (it will not scan the entire library)
# C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe\PowerShell.exe -ExecutionPolicy Bypass "C:\Users\Server\Desktop\radarrcustom.ps1"
@ -97,8 +98,8 @@ write-output """$plexscanner"" --analyze-deeply --item $itemid" | add-content $l
When using private trackers, it is imperitive to continue seeding. By using this script `on Download` and `on Upgrade` moves the media to your root movie folder as set in Radarr, and will create a symlink in the original download location so you can continue to seed.
Symlinking is preferable over hardlinking in most cases as the root movie folder can be on a seperate drive or nfs mount, where hardlinks are impossible.
```
sh
```sh
#!/bin/bash
PERMPATH="$radarr_moviefile_path"

Loading…
Cancel
Save