diff --git a/Custom-Post-Processing-Scripts.md b/Custom-Post-Processing-Scripts.md index afd0139..600e3eb 100644 --- a/Custom-Post-Processing-Scripts.md +++ b/Custom-Post-Processing-Scripts.md @@ -58,6 +58,7 @@ Sample script to have Plex scan destination folder only and "analyze deeply" the ``` # 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" + $movie_path = $env:radarr_movie_path #PSQlite location Import-Module C:\Users\Server\Desktop\scripts\PSSQLite @@ -70,7 +71,6 @@ $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 } - #Scan the movie folder & "$plexscanner" --scan --refresh --section $libraryid --directory $movie_path write-output """$plexscanner"" --scan --refresh --section $libraryid --directory $movie_path" | add-content $logfile