From 617df216a94eaeabe30fb6eafecf28ed41f37769 Mon Sep 17 00:00:00 2001 From: jobrien2001 Date: Fri, 23 Jun 2017 08:06:48 -0500 Subject: [PATCH] Updated Custom Post Processing Scripts (markdown) --- Custom-Post-Processing-Scripts.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Custom-Post-Processing-Scripts.md b/Custom-Post-Processing-Scripts.md index 10fc774..404d098 100644 --- a/Custom-Post-Processing-Scripts.md +++ b/Custom-Post-Processing-Scripts.md @@ -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 (not the entire library) -```# This script will add the movie to plex and scan the destination folder (it will not scan 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 @@ -74,14 +75,14 @@ $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``` - - +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. 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" @@ -105,4 +106,5 @@ if [ $PERMFILESIZE == $ORIGFILESIZE ] then rm "$LINKPATH" ln -s "$PERMPATH" "$LINKPATH" -fi``` \ No newline at end of file +fi +``` \ No newline at end of file