markshu 7 Posted April 8, 2014 Share Posted April 8, 2014 Okay, exactly WHAT do I have to do to get the MediaBrowser server to read in changes to metadata that has been edited outside of the MB Dashboard? I'm up to date with the very latest beta version (Version 3.0.5209.29215), and it is STILL ignoring external changes to metadata files - including completely overwriting files which have the LOCK bit SET. Steps to reproduce: Pick any existing TV series where you disagree with the metadata service providers about broadcast order vs production order. BEST example: Earth 2 Refresh metadata via dashboard and note that, yes indeed the episode order is not to your liking. Go into the metadata subdirectory of Earth 2 Season 1 and edit & renumber the metadata to match the episode files which have been in your preferred order since the beginning. Adjust all of the episode numbers in the metadata files to match and SET THE LOCK VALUE TO 'true'. Do a library refresh via the dashboard Note that the OLD METADATA IS STILL BEING DISPLAYED in BOTH the dashboard and in the MBC, and that all of your carefully hand-edited metadata for the re-arranged epsiodes show as UNLOCKED. If you do a Refresh Metadata from the Dashboard at this point, MB Server OVERWRITES THE METADATA FILES - even after you've set the Lock bit. So - exactly how am I supposed to adjust and edit metadata when MB Server simply ignores everything I do and I can't use the dashboard to make the desired edits? Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 how exactly did you perform step 5? Link to comment Share on other sites More sharing options...
markshu 7 Posted April 8, 2014 Author Share Posted April 8, 2014 how exactly did you perform step 5? Library/Scan Library Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 can you post the server log? it would seem that ought to work. Link to comment Share on other sites More sharing options...
markshu 7 Posted April 8, 2014 Author Share Posted April 8, 2014 Which one? I've got 10 different log files from today alone, varying from 2 KB to 1.2 MB Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 after you changed the files manually and did your scan Link to comment Share on other sites More sharing options...
markshu 7 Posted April 8, 2014 Author Share Posted April 8, 2014 That's most likely this one then, as it has the first correction of a multipart episode name. server-63532483940.log Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 just so we can help narrow it down, do you see the issue with non-anime series, or just anime? Link to comment Share on other sites More sharing options...
markshu 7 Posted April 8, 2014 Author Share Posted April 8, 2014 Earth 2 is a 1994 sci-fi TV series, not anime. I have the Anime plugin installed, but I don't have any anime libraries defined since I haven't broken out the anime episodes into individual files from the disks yet. Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 Ok, I notice you are doing refreshes from the edit page. I think what is happening is that you're refreshing a little too quickly. By quickly I mean you're telling the system to do a full internet refresh before we've actually recognized it as locked. The way the refresh button on the edit page works is that it's a full refresh, so first it goes out to internet sources, and then after it looks at your metadata. The dropdown next to the refresh button probably needs a "Local Only" option to do what you're trying to do. The locking settings do work, but at that point, it's not locked yet because as i mention, reading local metadata comes at the end when you use refresh button on the edit page. So at that point, it's not locked yet. So until there's a "Local Only" option on the edit page, your solution is as follows: - Make changes externally - Use the regular library scan not the edit page. The scan will see the xml changes - Now you should see it locked on the edit page. At this point, using the refresh feature on the edit page should work as you expect. So the key is, make sure the edit page sees the item as locked before refreshing, otherwise it will be a full internet refresh. But if you're manually editing xml, you don't need to use that at all and the normal library scan will pickup the changes. Link to comment Share on other sites More sharing options...
markshu 7 Posted April 8, 2014 Author Share Posted April 8, 2014 That's the problem - the normal library scan does NOT pick up the changes. While it does detect them, it doesn't actually PROCESS the changes made. Shut down server. Start up server. Monitor log output until initial startup tasks complete Navigate to Earth 2 season 1 metadata share in file browser. 'Touch' each metadata xml file by opening it in XML Notepad, perform an explicit save, and then closing it. Note that the log file indicates that the metadata file has changed. Repeat 3 & 4 for each episode metadata xml file so all of the files have been 'touched'. Note that the log file claims that the season will be refreshed.LibraryMonitor: Season 1 (\\KEIKO\TVSeries\Earth 2 (1994)\Season 1) will be refreshed. Log into the web dashboard. Start up a library scan using Library / Scan Library Wait for library scan to be completed. Open the metadata editor and see that NO REFRESH UPDATE HAS OCCURRED FOR EARTH 2 in the web editor. See attached logs. server-63532493344.log server-63532493971.log server-63532494355.log Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 I guess we'll have to keep an eye on this but I just tested and it worked as expected. Link to comment Share on other sites More sharing options...
Luke 37060 Posted April 8, 2014 Share Posted April 8, 2014 the only think i can think of that you'll want to verify is that when you save the file manually the date modified timestamp is getting updated. that's what we use as a comparison to determine if the file should be re-read or not. Link to comment Share on other sites More sharing options...
markshu 7 Posted April 9, 2014 Author Share Posted April 9, 2014 If you take a look at my previous post, you'll see that I explicitly tested that scenario with the same negative results. The only way I got the library to update properly was to remove the library.db and refreshinfo.db files (stop server, rename files to *.bak, restart server) and let MBS regenerate the library from scratch. Link to comment Share on other sites More sharing options...
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