Poll: I would like a XBMC API service
Yes, sweet!
No, why would I need that?
[Show Results]
 

Update XBMC library using commandline/service?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Basje Offline
Skilled Python Coder
Posts: 1,111
Joined: Jul 2005
Reputation: 6
Post: #1
I, as many others, have a NAS system running that stores most of my media files. I have multiple XBMC devices that have a single shared Library that points to the files on the NAS. So far so good.

Now when I add media files to the NAS I would like the shared library to be updated (e.g. via Sickbeard). If there was a XBMC running somewhere I could use the JSON API to force a library update. But there is not always an XBMC device switched on. Hence the JSON api is not always enabled. My NAS cannot run XBMC, so there really is no way of having an XBMC instance up all the time to update the library.

So what would be really nice is if there was a commandline version of XBMC that could be run as a service (or just XBMC without the GUI), that has a (limited) JSON API interface. That way a NAS could run that service and a (for example) library update could be done at any given time using that service.

(This post was last modified: 2012-03-29 14:54 by Basje.)
find quote
texaco Offline
Member
Posts: 90
Joined: Aug 2010
Reputation: 0
Post: #2
Solution:

-Update with sickbeard, if xbmc is running it will get updated.
-Turn on 'update library on startup', xbmc will check for new files when it is started.
find quote
Basje Offline
Skilled Python Coder
Posts: 1,111
Joined: Jul 2005
Reputation: 6
Post: #3
(2012-03-29 22:04)texaco Wrote:  Solution:

-Update with sickbeard, if xbmc is running it will get updated.
-Turn on 'update library on startup', xbmc will check for new files when it is started.

True, but like I said: I don't have XBMC running all the time. And yes, you could set it up to scan at start, but with large collections a scan will take some time on an ATV2 and it won't perform at all during those times. So that is why it's turned of.

Could it be possible to have a command line switch to not load any GUI for XBMC?

find quote
prae5 Offline
Team-XBMC Forum Moderator
Posts: 2,063
Joined: Jan 2009
Reputation: 34
Location: Cambridge, UK
Post: #4
(2012-03-29 23:00)Basje Wrote:  
(2012-03-29 22:04)texaco Wrote:  Solution:

-Update with sickbeard, if xbmc is running it will get updated.
-Turn on 'update library on startup', xbmc will check for new files when it is started.

True, but like I said: I don't have XBMC running all the time. And yes, you could set it up to scan at start, but with large collections a scan will take some time on an ATV2 and it won't perform at all during those times. So that is why it's turned of.

Could it be possible to have a command line switch to not load any GUI for XBMC?

Currently no and this poll is pretty much a waste of time as this has been covered lots in the past.
find quote
Basje Offline
Skilled Python Coder
Posts: 1,111
Joined: Jul 2005
Reputation: 6
Post: #5
Well, with all due respect: I did search the forums and could not find anything. Perhaps I used too specific keywords.

I just thought a standalone slim version of XBMC would be a lit of added value next to a centralized MySQL database. Too bad about the negative responses.

find quote
prae5 Offline
Team-XBMC Forum Moderator
Posts: 2,063
Joined: Jan 2009
Reputation: 34
Location: Cambridge, UK
Post: #6
Not being negative, just saying how it is and is a topic thats been covered in the past.

A standalone server would be great - but its not just a simple case of running without the gui, its a significant undertaken and requires significant changes to the core in its current state.
find quote
Odon Offline
Member
Posts: 74
Joined: Apr 2010
Reputation: 0
Post: #7
Here: http://forum.xbmc.org/showthread.php?tid=114612

There is a Eden RC2 repo at the end of the topic.
find quote
texaco Offline
Member
Posts: 90
Joined: Aug 2010
Reputation: 0
Post: #8
With all due respect you did not mentioned you had a atv which complicates the procedure, one solution culd be to use a media manager (ie ember) to create nfo and images that the atv will pick up. This could lighten the load for the small box and could make it usable during scans.

Understand that the atv is functional and great but it has some problems due to resources made available to xbmc.

As with all features in xbmc it is developed by volunteers and features tend to make it in stable builds when there is enouh interest for it among the developers. A centralized server is something i myself look forward to but someone has to have the interest to make it.


Dont be afraid to ask questions, developers are born grumphy Smile
find quote
schumi2004 Offline
Posting Freak
Posts: 1,425
Joined: Aug 2011
Reputation: 14
Post: #9
Maybe this is useful http://forum.xbmc.org/showthread.php?tid...pid1222094
find quote