Updated Custom Post Processing Scripts (markdown)

master
jobrien2001 7 years ago
parent 148064e231
commit f7e4fef1e5

@ -53,6 +53,30 @@ Radarr can execute a custom script when new movies are imported or a series is r
The information from Radarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a).
#### PowerShell ####
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 (not the entire library)
`# 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\Down\Desktop\Server\radarrcustom.ps1"
Set-ExecutionPolicy Unrestricted
$moviefile_path = $env:radarr_movie_path
$movie_path = $env:radarr_movie_path
$moviefile_path = Split-path -path $moviefile_path
#set your plex library ID
$libraryid = 0
#If you have multiple root folders and library IDs you can set them like so
If ($movie_path -like '*Movies Release\*' ) { $libraryid = 19 }
#set location of the plex scanner executable
$exe = "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe"
&$exe --scan --refresh --section $libraryid --directory $movie_path
#set location of log file
write-output $moviefile_path $movie_path | add-content C:\Users\Server\Desktop\radarimport.txt`
#### Reverse Symlinking ####
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.

Loading…
Cancel
Save