xbmc/xbmc — pull request #903 by jmarshallnz (2012-04-29 01:16:44+00:00)
Title: Video library reorganisation via XML

This is v2 of the original #335. This allows the addition of (or removal of) nodes in the video library. By default nothing should change (even library flattening is implemented).

There's a couple of gotchas:

1. Smartplaylists don't support proper sorting of sets - this is an existing problem in mainline, which is why 8cb48681 is in place. This could be dropped later when the sorting is fixed (problem is that the set items don't have the appropriate metadata associated, so sort on top). It may be that we need to readdress (yet again) the grouping of sets in certain nodes. It may be that this is something that @Montellese GSoC may look into?

2. The sorting of nodes is done via the order attribute inside the XMLs. I'm not sure if this is the most intuitive way to do it or not. An alternative is to sort by filesystem order (i.e. just name them as 01genres.xml etc.)

3. The flattening is a bit of a hack (2 directory structures in place) but I figured it was better to get this in while we can so we can see what other things folk will want rather than waiting until a more friendly way to setup the structure was in place. Again, perhaps @Montellese GSoC may address this by making it available via JSON-RPC then the web-interface.

Would like this in May :)