Jump to content

Missing metadata on re-add Library


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

I have a Library set to "Save artwork and metadata into media folders"

 

Why do I loose the metadata of the root folder when I remove and re-add the Library?

 

For example, I set the overview text for the root Library folder (main folder on the top level of Emby WMC), but when I remove the Library and re-add it, the metadata no longer exists.

 

All the subfolders maintain their metadata, only the root folder loses the metadata.

Edited by Keylonta
PenkethBoy
Posted

i suspect if you check the root folder does not have a "nfo" file before you remove the library - data stored in the database i suspect - so when you re add the Library there is no "stored" metadata to read as its cleared from the DB

Posted

How did you do this?

I set the overview text for the root Library folder
Posted

 

i suspect if you check the root folder does not have a "nfo" file

 

Yeah... it doesn't have a .nfo file in the root folder.

 

The .nfo file is kept in the last subfolder. For this particular Library, the VIDEO_TS folder.

 

 

 

How did you do this?

 

In the Metadata Manager I input text into the overview field of the Libraries root folder (Folder 1).

 

Folder 1\Folder 2\Folder 3\VIDEO_TS

Posted

Would you mind showing a screenshot of your metadata manager with the left side visible so that i can see that structure?

Posted

I tested further by creating some more libraries, but when ever I remove one and re-add it, it's root folder loses the overview metadata text.

 

In the below example, "Home videos & photos" is the root folder, and the .nfo file is in the VIDEO_TS folder within the "Part 1" folder.

 

So the "Home videos & photos" Library loses it's metadata when re-added to Emby WMC, but all the subfolders retain their metadata.

 

 

58ce04efbbc9f_1.jpg

  • Solution
Posted

Ok, I understand now. We never really intended to support this. To be honest, the overview field in the metadata manager is showing by accident for the top level folders. That's not really something we ever really intended to support.

  • Like 1
PenkethBoy
Posted

@@Keylonta an answer of sorts

 

If you add text to the "root folder" of a library then the data is saved under the server root folder for the library as a Folder.xml file

 

e..g c:\.....\Emby-Server\root\default\<name of library>\folder.xml

 

when you remove a library it deletes the <name of library> folder so this is why you loose your metadata as well as flushing the database

 

If you use the Backup plugin you could copy back the folder.xml file from the backup folder - i just did a manual copy of the file.

 

I tried putting the file in the actual root folder for the library on my datastore but a rescan/refresh did not pick it up. Also putting it back in the root folder under the server root library folder was also no picked up

 

As its unsupported thats probably why it does not re read the data

Posted

@@PenkethBoy You could try adding more text to the "root folder" of the re-added library, maybe when it recreates the Folder.xml (not sure if that's what it does) it will see the Folder.xml you copied back. If not, you could try editing the new Folder.xml, and copy and paste the text from the old Folder.xml.

PenkethBoy
Posted

lol

 

i was trying to answer your question

 

have no need of it myself

 

:)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...