I was recommended to post in the developer forum from the PLeX subreddit- hoping someone can help me out. 
Super stoked to have finally built my own home server and gotten all my content onto it. Like a lot of you, I’ve added all my music videos to my collection, and they populate in the Music library, but not being able to seamlessly switch between audio and video playback during shuffle is a huge pain, so I also have a Music Videos library.
In this library, everything just shows up with the name- and no year- so I’d love to write a utility that:
-
Crawls my library for all MP4 files.
-
Finds the matching MP3 file (just an extension replace at the end).
-
Extracts certain metadata (Title, Year, Artist, basically)
-
Updates the PLeX metdata for the video.
What I’m having trouble figuring out is how to find the metadata files for the videos and easily update them. For example, if I know the path of the MP4, is there an easy way to calculate the path to its XML file anywhere? Are there more than one XML file (this seems to be the case)?
If so, which one do I update to reflect it in the server?
PLeX doesn’t read/use NFO files, so I’m outta luck there, right?
Thanks!