mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Updated Custom Post Processing Scripts (markdown)
parent
9f2056e4e9
commit
617df216a9
1 changed files with 8 additions and 6 deletions
|
@ -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 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)
|
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"
|
# C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe\PowerShell.exe -ExecutionPolicy Bypass "C:\Users\Down\Desktop\Server\radarrcustom.ps1"
|
||||||
|
|
||||||
Set-ExecutionPolicy Unrestricted
|
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
|
&$exe --scan --refresh --section $libraryid --directory $movie_path
|
||||||
|
|
||||||
#set location of log file
|
#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 ####
|
#### 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.
|
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.
|
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
|
#!/bin/bash
|
||||||
|
|
||||||
PERMPATH="$radarr_moviefile_path"
|
PERMPATH="$radarr_moviefile_path"
|
||||||
|
@ -105,4 +106,5 @@ if [ $PERMFILESIZE == $ORIGFILESIZE ]
|
||||||
then
|
then
|
||||||
rm "$LINKPATH"
|
rm "$LINKPATH"
|
||||||
ln -s "$PERMPATH" "$LINKPATH"
|
ln -s "$PERMPATH" "$LINKPATH"
|
||||||
fi```
|
fi
|
||||||
|
```
|
Loading…
Reference in a new issue