View Full Version : Is there a way to export video/music library via python?
rwparris2
2008-11-18, 05:43
Is there a way to export video/music library via python?
I don't see it in the docs unless I'm overlooking something.
If not... consider this a feature request :;):
Nuka1195
2008-11-18, 06:40
theres no builtin, but it can be done manually with python.
rwparris2
2008-11-18, 08:51
Manually? As in query the database & format the xml?
I'll export mine and see how everything is formatted, but I probably don't want to write the code for that... to much work for very little gain.
I was going to make a script that automatically updates your libraries & then backs them up in case something gets corrupted (which has only happened to me twice, and never since beta 1, so its really not even that important).
Another question comes to mind though...
Is it possible to have a settings menu for scripts, similar to what plugins have?
I'd really like the user to be able to set intervals between library updates & maybe a few other things without requiring them to open & edit the .py file.
Maybe that should be a feature request? And move xbmcplugin.getSetting() to the regular xbmc module so it is universal...
Nuka1195
2008-11-18, 16:29
i think if you were to backup some other files also, like source.xml and favourites.xml a builtin to export the db would be worth it. not sure if it's possible, but there is an update,
any developers have a comment?
settings for scripts i'm working on, didn't get it done before the freeze.