PenkethBoy 2068 Posted January 13, 2017 Posted January 13, 2017 Have been editing a lot of video files names today and getting a problem with updating the metadata/nfo These are home videos - not movies or tv series They are in a "Home Video & Photos" library or an "Unset (mixed Content) library - although i think this will happen on any type of file from a bit of experimenting They were already in these libraries before i began the renaming (more meaningful names etc) After changing the name i did a library scan and all appeared well - i.e. new nfo's created and new poster jpg produced On looking at the libraries they have the "old" titles in the metadata i.e. not the new filename as you would expect So i tried a refresh - replace all metadata - same result So even with a new filename and even deleting the nfo prior to doing a refresh Emby will not pickup the change - reapplying from the database - but to a differently named file Now i can understand recreating the nfo should it get deleted/corrupted etc with the original data - but not to a file with a different filename- especially on a library which is not going to have internet metadata and i have indicated i want "replace all metadata". Which probably should be renamed to "replace all internet metadata" So am i missing something? Or do i have to move all my data out of Emby's view - do a scan and/ or Clean the database and then copy everything back - major PIA. If so can we have the refresh option to do a Full refresh (nuke it option) on these types of libraries and/or on all libraries please.
Luke 42080 Posted January 13, 2017 Posted January 13, 2017 No, that's not true. if you renamed it and deleted the nfo file, then it's a brand new video as far as the server is concerned.
PenkethBoy 2068 Posted January 13, 2017 Author Posted January 13, 2017 (edited) Thanks @@Luke Thats what i anticipated but not what's happening - i thought it a bit odd that it would move data from one file to another - this is on Stable release by the way I have just done it agian go to directory - delete all nfo and jpg > go back to library via home page - navigate to the directory > right click and choose refresh> replace all metadata can see nfo and jpg being created nfo have same OLD title Its reproducible [Edit] only one its not doing this on is a .flv file which appears to do the correct thing and have the New Title others are all MP4 Edited January 13, 2017 by PenkethBoy
PenkethBoy 2068 Posted January 13, 2017 Author Posted January 13, 2017 (edited) @@Happy2Play Nice catch but.... yes for one directory - i corrected the titles as they had the old ones in - deleted the nfo's refreshed and the old titles remain in new nfo's - so its not seeing the titles in the "new" files via reading the metadata from the file Other directories i have tried have no metadata at all the fields are all blank - its not just the odd file have one directory i have beed testing on and its got approx 100 video files in This is very odd [Edit] its not just the title field it appears to be any metadata fields that were filled in originally that are not updated - if you change them > do a refresh or delete the nfo and do a refresh - just updated a few files with new metadata within the video file i.e. artist/studio/comment field with some test data - the changes are not picked up and old data is re written Edited January 13, 2017 by PenkethBoy
Luke 42080 Posted January 13, 2017 Posted January 13, 2017 Well if you're preserving the nfo with old data inside then it would be expected behavior for that data to be retained.
PenkethBoy 2068 Posted January 14, 2017 Author Posted January 14, 2017 no i'm not preserving any data - the refresh does not work i updated the video file internal metadata - so a refresh should see new data and it does not the only way to get any data updated is to remove the directory from the library - scan - clean db - check the files are gone in emby then move the directory back - Total waste of time and effort - major PIA
Luke 42080 Posted January 14, 2017 Posted January 14, 2017 Sorry but that's not true. The data is obviously coming from somewhere. If it's not coming from the internet then it must be embedded within the file.
PenkethBoy 2068 Posted January 15, 2017 Author Posted January 15, 2017 @@Luke Its true because thats how Emby has worked for months since i first reported it - This happens on Stable and Dev - two separate emby instances - not looking at the same data/files Yes obviously the data is coming from the Emby database being re written to the nfo - its the only other place it can be If you use refresh it should pick up any new or changed data it does not - even if you delete the nfo file - it just writes back what it has in the database Remove and move back the file with associated scan/clean is the only way it will pick up the changes.
Luke 42080 Posted January 20, 2017 Posted January 20, 2017 @@PenkethBoy, if you rename the file there is no way it could populate using data from the old file name, unless you also renamed the nfo with it. Did you do that?
PenkethBoy 2068 Posted January 20, 2017 Author Posted January 20, 2017 Hi @@Luke This is odd i agree - no renaming of nfo's - just deleted them in testing Just performed another test on a previously untested folder - but in a library Just renamed the video file after deleting nfo recreates the nfo with the old title Thought it might be its reading the file before i can rename the file - so deleted the nfo again without changing the file name - did a refresh and it's correct now (yes!!!) - i guess the folder monitoring option is a lot quicker than i thought it was! The above was on a mp4 file with no internal to the file metadata - all fields blank A flv file in the same directory had a nfo created correctly first time after rename - but probably as this was the first file i renamed it probably tripped the folder monitoring before i got a chance to edit the second file name. Will do a bit more testing to see if this is consistent and report back
Luke 42080 Posted January 20, 2017 Posted January 20, 2017 Can you provide a sample video for testing? thanks.
Luke 42080 Posted January 20, 2017 Posted January 20, 2017 I did a test and saw no problems. Please let me know if this is similar to your method of testing. - Used the editor to edit a video title - then went into the folder and deleted the nfo and renamed the video file - ran a library scan, once complete the title matched the new video file name I also did the same test but instead of a library scan just waited a couple minutes for the realtime monitor, same result there.
PenkethBoy 2068 Posted January 20, 2017 Author Posted January 20, 2017 hi Luke will document what i have tested - did not use the editor and find a small file to upload
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now