This came about because of the default scanners problems with handling certain names in files. For example I was using 1080HP51, qHD, HD, DVD in my file names to designate information about the file for myself. I use Serviio as well as Plex and I did not want to rename all my files specifically for Plex to be able to decode them for use with the Metadata Agents.
My quest first took me to the #Plex channel on IRC Freenode. Someone was able to point me to the VideoFiles.py file as being the one that I needed to manipulate. Changing this file, specificially, adding the terms I wanted to exclude in the "format = [" section in the beginning of the file resulted in my files being properly added and Metadata being looked up for each file. Hurray. However, in a few hours, those changes were overwritten. I found out that is by design as the default scanners and such that come with Plex will be kept as they were deployed by the package.
Doing more research and coming to this forum I came across this thread with someone trying to do something in the same vein that I was trying:
http://forums.plexapp.com/index.php/topic/58512-how-to-overrideupdate-videofilespy/
Time dig into python if I wanted to solve this. I got this working on Linux correctly as I intended and I updated the thread with my changes.
I wanted to help the Windows users fix this as well. I've attached the files need to add the modified custom scanner this this post.
Extract the file to your Local AppData for Plex. For myself, I had to extract it here:
C:\Users\administrator\AppData\Local\Plex Media Server\Scanners\
You will need to modify sys.path.append in Plex_Movie_Scanner_Custom.py and Stack.py. It's at the beginning of the file.
Once this is done, Plex should pick it up (you might need to restart Plex). You can then modify your movie section to use the new scanner called Plex_Movie_Scanner_Custom.py.
For myself, it would not pick up the files that had already been added to a Movie folder section. I had to delete that Movie section, re-add it, select the Custom scanner and everything was peachy. Hopefully this helps someone else.
To the Devs: This seems like a really core piece of customizable information for a scanner. It would be nice to have options to edit a Scanner through the PMS Web Interface. Doing it in this manner seems very kludgey to me.
Edit: Originally the file did not attach. I've just reattached it.
