CLI library update?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cynicaljoy Offline
Junior Member
Posts: 24
Joined: Feb 2011
Reputation: 0
Post: #1
Is there a way to trigger the library update from the CLI?
find quote
topfs2 Offline
Team-Kodi Developer
Posts: 4,084
Joined: Dec 2007
Reputation: 12
Post: #2
yes, and it has been answered many many times. Search

If you have problems please read this before posting

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: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
bradvido88 Offline
Donor
Posts: 796
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #3
topfs2 Wrote:yes, and it has been answered many many times. Search
I take it this response may have been a contributing factor to this post Big Grin http://forum.xbmc.org/showthread.php?tid=99092

If it helps you, I trigger my updates from the command line with the JSON-RPC interface, using the VideoLibrary.ScanForContent method.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
topfs2 Offline
Team-Kodi Developer
Posts: 4,084
Joined: Dec 2007
Reputation: 12
Post: #4
hehe, forgot about this. at times I'm irritated and take it out on the users, I did a google search and almost everyone of them points to httpapi way of doing it (which is deprecated) and this thread seems as good as any to say:

Code:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.ScanForContent", "id": 1 }' -H 'content-type: text/plain;'  http://IP:PORT/jsonrpc

Port is usually 8080 or 80 depending on your os (former linux, osx etc and latter windows).

Another way is
Code:
xbmc-send localhost -a "XBMC.update library(video)"

IIRC.

Cheers,
Tobias

If you have problems please read this before posting

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: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
cynicaljoy Offline
Junior Member
Posts: 24
Joined: Feb 2011
Reputation: 0
Post: #5
Yes, I started that thread after the initial reply. I can't stand being told to search after I have already tried, and as you have found...searching on here doesn't get you very far. I know that its irritating to repeat yourself, but if the search was adequate I would take ownership of my failure to properly use it, but it is not.

Anyhow, thanks for the help. I am on the right track now.
find quote
cynicaljoy Offline
Junior Member
Posts: 24
Joined: Feb 2011
Reputation: 0
Post: #6
I am even willing to contribute my time in getting osqa or something decided upon by the community, setup.
find quote