-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowershell_plexscan.reg
29 lines (22 loc) · 3.69 KB
/
powershell_plexscan.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Windows Registry Editor Version 5.00
;This reg file can be used for right click shell options in Windows for scanning Plex content into their respective libraries
;It takes advantage of PowerShell and Plex's URL command options - This seems to be a lot more stable and consistent than using
;the normal 'Plex Media Scanner.exe' command line options
;
;This is a generic/sample file and needs to be configured for your setup/environment
;
;Please update the Plex-Token with your unique token - replace aaabbbccc111222333 with your own
;Please update the text for how you would like the right click options to appear
;Please update the sections with your correct library ID's
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_movies]
@="PlexScan Movies Here"
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_movies\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoProfile -Command \"Invoke-WebRequest -Uri \\\"http://127.0.0.1:32400/library/sections/2/refresh?path=%L\"&\"X-Plex-Token=aaabbbccc111222333\\\" -UseBasicParsing\""
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_movies4K]
@="PlexScan 4K Movies Here"
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_movies4K\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoProfile -Command \"Invoke-WebRequest -Uri \\\"http://127.0.0.1:32400/library/sections/3/refresh?path=%L\"&\"X-Plex-Token=aaabbbccc111222333\\\" -UseBasicParsing\""
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_tv]
@="PlexScan TV Here"
[HKEY_CLASSES_ROOT\Directory\shell\powershell_plex_tv\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoProfile -Command \"Invoke-WebRequest -Uri \\\"http://127.0.0.1:32400/library/sections/1/refresh?path=%L\"&\"X-Plex-Token=aaabbbccc111222333\\\" -UseBasicParsing\""