Server Version#: 4.112.0
Player Version#:N/A
Songs that are the exact same file get duplicated. Hard to understand why a huge bug like this is still there.
If you provide details and log files someone might be able to help.
But with what you have provided the problem is as likely to not exist as it is to exist.
Only use one method to scan your library. i.e. if you have “Automatic library scans” activated, then don’t use “periodic” or manual library scans.
Otherwise you could trigger 2 scans running in parallel.
Concurrency bug - needs to be fixed (if this is true)
Pretty easy to fix if the devs can’t figure it out here is a clue:
The scan class should be a singleton that can only run once until completion.
Send me a code snip-it and I will recode for them.
If the user requests a scan and there is already one running it get queued to run next.
100% the problem exists. The problem with logs is I have no idea when it happened.
If the same file (song) exists in the same album, it’s a bug. Should NEVER happen,.
This may not be your setup however, I’ve seen this happen when the filename or folder structure on disk is altered AFTER the initial scan of music media into plex. You end up with zombie double entries.
If this is what you are doing then your only solution is a plex dance of the album/artist which have altered after the initial scan.
How can you tell if it is a zombie? In my case both entries pointed to the same file that was really there. I don’t think any changes were made to the folder structure.
Also by deleting the album, and putting back and rescanning fixed it, it;s just that is a big PIA and should not be necessary.
Can you give us a more clear bug report? What does “duplicated” mean exactly? What are the repro steps? Would you accept a bug report like this from your staff?
Well I fixed it but what you would observe is this:
The Album has the same song 2 or more times and they all point to the same file. I have no idea how to reproduce it since I don’t know what caused it. (well I do there is a bug in the code that permits this, but I don’t know how to trigger it).
The bug is that the code will add the same file to the album container more that once.
Obviously there is. no safeguard logic to prevent this OR remediated it.
Code that explicitly checks for this needs to be added.
Rule: Never add the same music file to the same album.
Enforce this rule.
Again, please show me the code that adds a song to an album and I will gladly fix it for you,
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.