2025-09-20, 10:57 PM
(2024-06-27, 10:46 PM)Efficient_Good_5784 Wrote: To explain what I did in order, I:
- Added a new path to an existing library (library A)
- Copied an entire show to the new path, then scanned library A.
- Deleted the copied show from the old path.
- Scanned library A.
I ended with no duplicates. The old copy was deleted, and library A has one copy from the correct new path on the system.
Thank you for reposting your steps! It worked for my particular scenario with some minor adjustments but it follows the same logic.
In case anyone in the future needs context: I originally had my library folder sources scattered and not isolated to one (or few) location(s). In my process of minimizing the # of sources, I removed folders in the library settings, moved the files to a different directory that was already added as one of the library sources, and then rescanned the library. This is what caused duplicates to show up on my end. Something to note is that I have metadata nfo, trickplay, images, and subtitles all save to my respective media folders.
I tried all sorts of things like:
- Removing all files created by Jellyfin (nfo, trickplay, images, etc) from the affected media folder and rescan,
- Remove media folders from the new source location, rescan, move folders back to new source location and rescan,
- Move media folders back to original source location, add back onto the library settings, rescan, then remove original source location from library settings and rescan
- etc.
Anyway, the steps listed by Efficient_Good_5784 was the only way to consistently fix my issues, but I modified steps to match my starting point as someone who's already experiencing dupes:
- Move affected media folder(s) back to their original source location.
- Add the original source location path back into the existing library (library A), while leaving the new source location as-is, and rescan.
- Progress check: inspect the Jellyfin media browser to confirm if the duplicates are showing or not. It should just show as a singular listing at this point, and directory will show up as the original source location!
- Move ONLY the media files (and image files as optional if you custom assigned) into the new media source location. This means you're leaving behind all .nfo and/or trickplay files in that original source location. Once media files are moved, rescan library A.
- Progress check: inspect the Jellyfin media browser to confirm if the listing remained singular or not. It should still only show a singular listing, and directory will show up as the new source location!
- Remove the original source location path from the library A, and rescan. Even without deleting the leftover original source location folder, Jellyfin should now only read the files from the new source and singular content listing. Once confirmed, delete the source location folder where the leftover Jellyfin files might still be orphaned.
^I'm sure you could achieve this with fewer steps but going with this modified approach,for already incorrectly moved media folders, has allowed me to undo the dupe listings. Might work for you as well or not, but give it a try.