Posts: 73
Joined: Aug 2011
Reputation:
2
Hi all,
I'm wondering how I can update the video library just for a particular source from a bash script. Any pointers, ideas welcome. I did search the forums but found little help.
TIA
Posts: 5,184
Joined: Jan 2009
Reputation:
131
2012-04-22, 13:31
(This post was last modified: 2012-04-22, 13:32 by Montellese.)
This is possible with current master using JSON-RPC's VideoLibrary.Scan as well but it's not possible in Eden. In Eden you can only update the whole video library but in master you can also pass a path to a specific directory/source to only update items from that directory.
I always recommend not to use the HTTP-API if possible because it is deprecated and will be removed in the near future (with 99% certainty before the next stable release). It is not maintained anymore which means there are known bugs that are not and will not be fixed (at least certainly not by me). I don't even keep track of those bugs.
Forgot to mention that the argument needs to be an absolute path, a source name won't work (neither in JSON-RPC nor in HTTP-API).
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 1
Joined: Jan 2013
Reputation:
0
Are there any plans to allow a file path in stead of a directory to be passed as parameter? Right now I am notifying XBMC of new files by passing it the directory, and that works fine, but it seems wasteful to let it rescan the entire directory when I know exactly what file was added. Especially on the Raspberry Pi (Raspbmc) I would like to limit background processing, since the update will take place whenever a download finishes, and I might be watching something while it does...
Posts: 5,184
Joined: Jan 2009
Reputation:
131
It's on my TODO list but it's not that easy to accomplish. Actually it would probably be more like a seperate method which takes a database id instead of a path.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.