I recently found out the hard way that Plex Media Server does not allow the same physical file to be listed twice or more in a library. I have a library containing personal family videos, each video tagged with metadata indicating who appears on the video, e.g. “DADDY”, “MOMMY”, “CHILD”, “DOG”, etc. Obviously, some videos only contain one person/creature, and some videos contain multiple people/creatures.
I created a simple bash script that creates symbolic links from the original video file. Let’s say there is ORIGINAL.MP4 and it has metadata “MOMMY” and “CHILD” and “DOG”. My script takes the ORIGINAL.MP4 file and makes three new symbolic links pointing to it, namely “MOMMYVIDEO.MP4”, “CHILDVIDEO.MP4” and “DOGVIDEO.MP4”. This is a simplification, as the script also accounts for movie dates and arranges them into series and episodes, but that is beside the point of this feature request.
My target was to create a nice library of “PEOPLE” that has a neat folder for every family member. The end-user can then browse all our family videos arranged by family members, and find videos that feature a specific family member. The end-user goes into “MOMMY” folder and finds “MOMMYVIDEO.MP4” which is actually the same “ORIGINAL.MP4” video mentioned earlier. Then the end-user goes into “DOG” folder and finds “DOGVIDEO.MP4” which is again a replica of the original video.
But alas, it turns out that Plex Media Server detects these videos as duplicate, and disallows the creation of this kind of library. At first I thought there must be something in Plex that detects the symbolic links, but then I read somewhere that it is a hash identification that is calculated for the binary video file. The way Plex Server currently works, is that it may create a folder for MOMMYVIDEO.MP4, but as soon as it finds out about DOGVIDEO.MP4, it removes the previously created MOMMY folder. I don’t like this behaviour, for this specific library, at least.
In any case, it would be nice if I could go into library settings and turn off “Detect and disallow identical files” feature for a specific library. This would allow me to organize the family videos pleasantly, based on who appears in them.
One way to solve my problem, is not to use symbolic links and actually create new copies of the original file, but I specifically would not like to do that, because it consumes a lot of storage (we have thousands of family videos). Also, running the script with copy functionality instead of creating a new symbolic link takes a huge amount of time when the files are being copied over.