• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification Duplicates when moving files

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Duplicates when moving files

    Moving files within a library creates duplicates
    halfchemistry
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Nov
    Reputation: 0
    #11
    2024-11-02, 05:09 PM
    (2024-06-25, 11:38 AM)windowsdan Wrote: I am using the latest 10.9.7 JellyFin on Linux (debian based) and all works completely fine except when I move a video file from one folder in a library to another. I then get duplicates, as the file moving to the new folder is seen and scanned into the library, but the fact that it no longer exists in the previous folder is ignored by the library scan.

    This persists through a full scan of all libraries or just a update new files scan. I have to manually click on the video and delete it to remove it from the library.

    Surely there should be some way of Jellyfin recognising files that have disappeared and then removing their entries from the library on a scan?

    An Example:
    • I have the library '4K Films' and it points to /media/4k and 10 other locations across 10 hard drives /mnt/e, /mnt/f, /mnt/g ... etc
    • I use the /media/4k folder to extract or rip videos to as it is on an nmve and super fast, there is then a crontab job over night to move those files to the most recent slower hard disk for storage.
    • I need it to be available locally on the nmve in Jellyfin as I can be in a situation of wanting to watch straight away and won't wait for transfer to hard disk
    • I don't want to have to delete the duplicates every day once the script has run over night
    • I do script in a library scan after the transfer but like I said that doesn't help. It shows the library entry for the file in the new location but never removes the missing old one


    Hi, I'm having a similar problem. May I ask you if your hdd is formatted in ntfs, exfat of ext4? (or others)
    nawa82
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Sep
    Reputation: 0
    Country:United States
    #12
    2025-09-20, 10:57 PM
    (2024-06-27, 10:46 PM)Efficient_Good_5784 Wrote: To explain what I did in order, I:
    1. Added a new path to an existing library (library A)
    2. Copied an entire show to the new path, then scanned library A.
    3. Deleted the copied show from the old path.
    4. 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:

    1. Move affected media folder(s) back to their original source location.
    2. Add the original source location path back into the existing library (library A), while leaving the new source location as-is, and rescan.
    3. 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!
    4. 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.
    5. 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!
    6. 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.
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode