2013-03-24, 17:26
(2013-03-24, 16:28)charrua Wrote:(2013-03-24, 16:20)MilhouseVH Wrote:As a safety measure, it'd be wise reading the media details before asking XBMC to remove it.(2013-03-24, 16:18)charrua Wrote: Maybe you could use VideoLibrary.RemoveMovie first (or VideoLibrary.RemoveTVShow, VideoLibrary.RemoveTVShow, VideoLibrary.RemoveEpisode, etc.) and then call for a source scan.Hmm, yeah, I'll have a go with RemoveEpisode/RemoveMovie - removing the entire TVShow is possibly a little excessive so hopefully it doesn't come to that!
After source refresh is done you could even check the new info against the old one and restore fields as needed.
Good news... removing media items seems to do the trick as far as scanning local NFOs is concerned. Thanks charrua.
As a test, I modified the plot for a tvshow episode NFO, ran the qax option on the tvshow and the episode - as expected - failed QA, it was removed (just the episode) from the media libary, then the directory re-scanned and the new modified plot became visible in the GUI. I've tested the same with a movie, and no problem, it worked fine.
I've uploaded version v0.2.6 with this change, so that qax now removes media items from the media library database before re-scanning - use at your own discretion! Feedback would be most welcome as I've got so few test cases (all my media is local, and pretty much complete).
Regarding the safety measure... probably a lot of work!