• 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 General Questions Where does Jellyfin really store collection metadata

     
    • 0 Vote(s) - 0 Average

    Where does Jellyfin really store collection metadata

    bigggtuna
    Offline

    Junior Member

    Posts: 17
    Threads: 8
    Joined: 2023 Jun
    Reputation: 0
    #1
    2025-08-30, 06:16 AM
    I recently organized my library with sonarr and radarr, but with the renaming I obviously lost the organization of my collections due to the filename changes. I wrote a script to help me rewrite the collection.xml files from a backup, but when I replace the collection.xml file at /config/data/collections/collection [boxset]/collection.xml, nothing changes with the collection on Jellyfin. Refreshing metadata on the collection yields nothing. However, when I then add a new item to the collection, the server overwrites the CollectionItems section of the collection.xml while keeping around the rest of the original metadata such as Genres and Studios.

    The server must persist the collection mappings somewhere else and only write to (not read from) config/.../collection.xml because if I then overwrite the collection.xml again and add another new item, it overwrites collection.xml again with the first item still in the collection plus the new item. This is a relatively recent change because I have updated my collections once before by replacing all the XML files.

    I am running in docker on Unraid, so I have access to the config directory even when the container is off. I tried swapping the XML files while the container was off and starting it up with the new XMLs and none of the collections updated.

    And before you ask, yes I am 100% sure I am providing a correct path and XML tags and the file is encoded in utf-8.

    Thanks for your help.
    IndianaLarry
    Offline

    Junior Member

    Posts: 18
    Threads: 1
    Joined: 2025 Sep
    Reputation: 0
    Country:United States
    #2
    3 hours ago
    Jellyfin has a Sqlite database called library.db within the data directory. This serves as the source of truth, and the XML files are overridden with data from this database.
    KodiUser1138
    Offline

    Member

    Posts: 375
    Threads: 35
    Joined: 2023 Jun
    Reputation: 0
    Country:Canada
    #3
    2 hours ago
    You used to be able to edit the xml files and then rescan and JF would reflect the updates. Then that was removed with 10.10.0 I believe, which sucked.

    I found a work-around.

    Move your collections folders out of the main Collection folder (or rename the entire thing if you want to do a full rescan.

    Rescan your collections. With the missing collections folders being gone JF will remove those collections from your library.

    Once finished, move your removed collections folders back to the main Collections folder and rescan again. Not JF sees "new" collections to put into the library and all changes made to your XML files will be reflected.

    I have been testing 2 Collection based plug-ins but one or both have seemed to caused an issue wher TV shows and images no longer work in my collections properly or at all. Stil a work in progress overall.
    JF Wish List:
    IMDb Top250 metadata
    Collection content rules: Library-Title/Sorttitle/Tag/Director/Filename/Contains
    Collection organized by Library
    Collections scanned to editable XML
    Media info show added Collection
    Soundtrack auto link to movie by title/sort/Manual
    Read Music Album Sort
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 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