Kodi Community Forum
CLI library update? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: CLI library update? (/showthread.php?tid=95939)



CLI library update? - cynicaljoy - 2011-03-04

Is there a way to trigger the library update from the CLI?


- topfs2 - 2011-03-04

yes, and it has been answered many many times. Search


- bradvido88 - 2011-04-11

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.


- topfs2 - 2011-04-11

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


- cynicaljoy - 2011-04-12

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.


- cynicaljoy - 2011-04-12

I am even willing to contribute my time in getting osqa or something decided upon by the community, setup.