Server Version#: 1.17.0.1709
This page shows the command line that can be used with plex:-
https://support.plex.tv/articles/201242707-plex-media-scanner-via-command-line/
Notably the --add-section --type type:1,2,8 --agent --location
command only allows types 1=movies; 2=tv & 8=music, however it needs to also allow type=13 used for photos (got from db). Should be a 1 minute fix for command line syntax checker to allow these values through. I note that OtherVideos uses type=1 (same as movies) but defaults to a different scanner.
As a (very temporary) workaround I added them as type=1 then changed library_sections.section_type=13 in the database, but it’s far from ideal.
I wanted to recreate my Plex library as I was having issue with random disappearing artwork. Sick of doing it by hand I knocked up a batch file to do it all. Problem is it will take days to reget all metadata, even though it’s all offline.
I’m tempted to write a script to just inject all the data directly into the plex database myself, as using hash tables along with transactions speeds up sqlite hugely. I did similar for the RomCollectionBrowser kodi games addon last year and it turned 3 days scanning into 20 minutes). As I use all offline metdata (nfo’s, jpgs, tags for music) etc it doesn’t need to be complex. I always thought both Kodi and Plex could benefit from separating out the metadata grabbers to save it all offline (allowing user to modify + only grabbed online once), then the scanner can just whiz through it.