mirror of
https://github.com/Radarr/Radarr
synced 2025-03-11 22:53:03 +00:00
Updated Custom Post Processing Scripts (markdown)
parent
81afe96d4f
commit
110fd5d4b6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
# 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"
|
# C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe\PowerShell.exe -ExecutionPolicy Bypass "C:\Users\Server\Desktop\radarrcustom.ps1"
|
||||||
|
|
||||||
$movie_path = $env:radarr_movie_path
|
$movie_path = $env:radarr_movie_path
|
||||||
#PSQlite location
|
#PSQlite location
|
||||||
Import-Module C:\Users\Server\Desktop\scripts\PSSQLite
|
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 you have multiple root folders and library IDs you can set them like so
|
||||||
#If ($movie_path -like '*Movies Release\*' ) { $libraryid = 19 }
|
#If ($movie_path -like '*Movies Release\*' ) { $libraryid = 19 }
|
||||||
|
|
||||||
|
|
||||||
#Scan the movie folder
|
#Scan the movie folder
|
||||||
& "$plexscanner" --scan --refresh --section $libraryid --directory $movie_path
|
& "$plexscanner" --scan --refresh --section $libraryid --directory $movie_path
|
||||||
write-output """$plexscanner"" --scan --refresh --section $libraryid --directory $movie_path" | add-content $logfile
|
write-output """$plexscanner"" --scan --refresh --section $libraryid --directory $movie_path" | add-content $logfile
|
||||||
|
|
Loading…
Add table
Reference in a new issue