mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-16 16:04:08 +01:00
Updated Custom Post Processing Scripts (markdown)
parent
9f2056e4e9
commit
617df216a9
@ -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```
|
||||
fi
|
||||
```
|
Loading…
Reference in New Issue
Block a user