After finding this thread the other day I was able to verify that I can scan my music sections by directory which is something I’ve wanted to be able to do for a very long time. This will really be a tremendous time saver for me.
After playing around with adding some registry keys to my windows registry I have managed to add a shell extension to allow me to right click on a folder to scan it to either my Movies, TV or Music sections. All three options show up on any folder in my file system but I eventually plan on making it so only the appropriate option is available and only when browning a folder that is actually located within a library section. For now I’m just happy to have a quick way to scan any folder into any of the three sections.
I exported the registry keys into a file called PlexMediaScannerShellExtension.reg and the code is as follows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\PMS.1MovieScan.1ScanFolderTree]
@=“PMS Scan Folder to Movies”
[HKEY_CLASSES_ROOT\Directory\shell\PMS.1MovieScan.1ScanFolderTree\command]
@="“C:\\Program Files\\Plex\\Plex Media Server\\Plex Media Scanner.exe” --verbose --section 20 --scan --refresh --directory “%1"”
[HKEY_CLASSES_ROOT\Directory\shell\PMS.2TVShowScan.1ScanFolderTree]
@=“PMS Scan Folder to TV Shows”
[HKEY_CLASSES_ROOT\Directory\shell\PMS.2TVShowScan.1ScanFolderTree\command]
@="“C:\\Program Files\\Plex\\Plex Media Server\\Plex Media Scanner.exe” --verbose --section 1 --scan --refresh --directory “%1"”
[HKEY_CLASSES_ROOT\Directory\shell\PMS.3Music.1ScanFolderTree]
@=“PMS Scan Folder to Music”
[HKEY_CLASSES_ROOT\Directory\shell\PMS.3Music.1ScanFolderTree\command]
@="“C:\\Program Files\\Plex\\Plex Media Server\\Plex Media Scanner.exe” --verbose --section 35 --scan --refresh --directory “%1"”
Just save it to a .reg file and be sure to change the section numbers to match what you have on your system. And remember it won’t work if your try to scan a folder not actually located within the library section’s folder structure.