Export Library

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fandango Offline
Junior Member
Posts: 2
Joined: Dec 2009
Reputation: 0
Post: #1
Quick Version:

Need to run the Export Video Library function from a script. There doesn't seem to be a builtin function for it that i can execute over http, and I don't see anything in the xbmc module for it. Any ideas? Thanks!

Longer Version:

I'm developing a script that will export the video library to an xml file and FTP it to a central location where a server component will merge it with some other people's video libraries to give me and some friends a central view of who's got what. I can share the code if this is something people are interested in (once it's done, i'm just getting started!)

If this export function can't be run through code I will use the http query function to grab columns from the movies table, but the xml option seems much nicer - serialization already done for me, standard format, etc. However if you have some other suggestions for how to approach this I'd love to hear about it.

- fandango
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #2
currently not avail but should be. trac

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.
find quote
dtviewer Offline
Fan
Posts: 664
Joined: Jul 2008
Reputation: 1
Post: #3
This would be a great feature. Hope you do follow through with the idea.
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #4
added to svn, see http://trac.xbmc.org/changeset/25772. note that this will NOT be in camelot.

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.
find quote
fandango Offline
Junior Member
Posts: 2
Joined: Dec 2009
Reputation: 0
Post: #5
Awesome! now that's great service. For the meantime I'll work with the query tool. Thanks.
find quote
bnevets27 Offline
Senior Member
Posts: 170
Joined: Feb 2009
Reputation: 1
Post: #6
fandango, hows the progress going with the export script? I would love for you to share it. It would make it a lot easier to share libraries between friends.

Thanks for bringing up the export library builtin function topic. I also looking for that functionality. I want to make a script to export the library on shutdown. I read up a bit on how to write a script but can't quite figure out how to write it. Could you help me out?

I would like to export to separate files, export thumbs, no overwrite and export actorthumbs. Which if I understand correctly is:

EDIT:
exportlibrary(video,true,true,false,true)

(thanks spiff)
(This post was last modified: 2010-01-07 09:56 by bnevets27.)
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #7
music|video = music or video - choose one

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.
find quote