xbmc/xbmc — pull request #1732 by dragonflight (2012-11-05 00:42:08+00:00)
Title: FIX: Video metadata disappears from files mode view after Clean Library

This is a problem with Eden as well.

If you have a file structure like

movies/b-movies/movie1/video.avi
movies/b-movies/movie2/video.avi

I.e. intermediate directories between the movie name and the source, then the current clean library will remove them from the paths table (in this case movies/b-movies) and the movies will have an invalid parentPathId and no video information will be displayed in views like Confluence media view.
Also if a video path was excluded, that would also disappear after a clean library (because there is no content set in the path entry)

I have tested (at least at the moment (a week ago?) any changes to any of the scraper settings (such as recurse, no update) result in the content being set.

Unfortunately the code doesn't clean enough. It really should remove all paths that are unreachable from a source or a sub directory of a path that has been excluded. While I have a bunch of these I imagine under normal circumstances this would not be a problem as users would not generally be moving their libraries around while still leaving old copies in existence, so I left it out as it didn't seem to be worth the effort.