![]() |
Where does Jellyfin really store collection metadata - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Where does Jellyfin really store collection metadata (/t-where-does-jellyfin-really-store-collection-metadata) |
Where does Jellyfin really store collection metadata - bigggtuna - 2025-08-30 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. RE: Where does Jellyfin really store collection metadata - IndianaLarry - 2025-09-17 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. RE: Where does Jellyfin really store collection metadata - KodiUser1138 - 2025-09-17 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. |