heads up: Video library reorganisation via XML
#5
There's a few minor issues to iron out, mostly relating to how sets are handled - with a general "group sets in everything" it doesn't really work that well for things like recently added when sets are all grouped together. Not sure the best way to handle as yet.

But basically, just take a nosy through system/library/video(_flat)

XML files describe the layout. There's 3 types of "nodes":

1. Virtual folders. These are real folders in the above folder heirarchy, described using index.xml inside the folder. These are for general heirarchy building. The movies/tvshow/musicvideo overview nodes are examples.
2. Links to real folders. These act as shortcuts to real folders, which is anything the VFS knows about (i.e. videodb:// paths or actual paths on disk, or the playlists node, addons node, files node etc.) Requirement is to set the <path> tag inside these. Examples are all the nodes in the current structure.
3. Filters. These are identical to smartplaylists but are laid out slightly differently. Basically just change the <smartplaylist> bit to <node type="filter"> and add <label> and <icon> tags as needed. Example here: https://github.com/jmarshallnz/xbmc/blob...movies.xml

Note that you can copy the structure into userdata/Database/ and mess around there to your hearts content.

As for where to from here, well there's several things to look to:

1. Can we allow editing this from the UI (IMO this would be messy to do nicely, though with touch in the picture it becomes doable with a whole heap of background work to do first such as drag n drop).

2. The current homepage links don't really make sense if the user can alter the library structure. They'll still work, but one presumes that if the user wants to turn off a particular node, they also don't want a shortcut to it elsewhere. Potential ideas are allowing static lists to be filled using a directory which would allow you to just add submenus that consist of what the library structure is.

3. Gotta do the music lib as well (get rid of music files etc.)

4. I want to move the add source stuff to settings rather than relying on context/files node. This isn't necessarily easy given the current code for gui settings.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply


Messages In This Thread
RE: heads up: Video library reorganisation via XML - by jmarshall - 2012-05-02, 12:57
Logout Mark Read Team Forum Stats Members Help
heads up: Video library reorganisation via XML1