Is it possible to add libraries to PLEX from the command line with bash in Linux?
I am writing a service that will symlink all new media directories I add with PLEX friendly filenames and then add them to PLEX automatically without user intervention. I add and remove media periodically and it is troublesome to have to log into my server to fix the file names then go to the PLEX web interface to add the new media. The first half of this service works fine (symlinking proper file names for all media that hasn't already been fixed), but I cannot figure out how or if it is possible to add libraries manually from bash/CLI so they appear in the PLEX interface.
Is there documentation for this somewhere or has anyone done this before?