updatelibrary by TV Show Name
#1
is it at all possible to Update the TV Show Library just by giving a TV Show name

something like
http://user:pass@IPaddress:port/jsonrpc?request={"id":1,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"tvshow":"Bones"}}

If not is it possible to get the ShowDetails so i can get the path
ie

http://user:pass@ipaddress:port/jsonrpc?request={"id":1,"jsonrpc":"2.0","method":"VideoLibrary.GetTVShowDetails","params":{"tvshowid": "Bones", "properties": ["path"]}}

thanks
Reply
#2
I don't think so, at least not the way you are doing it. The only parameter that VideoLibrary.Scan accepts is the complete path to the directory you want to scan.

http://wiki.xbmc.org/?title=JSON-RPC_API...brary.Scan

If you know the common parent directory for all the TV shows, you could build the complete path.
Reply
#3
(2014-05-18, 10:26)pkscuot Wrote: I don't think so, at least not the way you are doing it. The only parameter that VideoLibrary.Scan accepts is the complete path to the directory you want to scan.

http://wiki.xbmc.org/?title=JSON-RPC_API...brary.Scan

If you know the common parent directory for all the TV shows, you could build the complete path.

hi thanks for the info.
when sanning paths, can i supply an array of file paths, and if so will it scan each in turn
Or would i need to pass one path at a time and wait till first path has finished scanning.

thanks
Reply
#4
(2014-05-18, 12:27)k_zeon Wrote:
(2014-05-18, 10:26)pkscuot Wrote: I don't think so, at least not the way you are doing it. The only parameter that VideoLibrary.Scan accepts is the complete path to the directory you want to scan.

http://wiki.xbmc.org/?title=JSON-RPC_API...brary.Scan

If you know the common parent directory for all the TV shows, you could build the complete path.

hi thanks for the info.
when sanning paths, can i supply an array of file paths, and if so will it scan each in turn
Or would i need to pass one path at a time and wait till first path has finished scanning.

The API documents are pretty clear. You can only supply one path at a time. If you want to scan more than one, you have to send a separate JSON request.
Reply
#5
(2014-05-19, 00:17)pkscuot Wrote:
(2014-05-18, 12:27)k_zeon Wrote:
(2014-05-18, 10:26)pkscuot Wrote: I don't think so, at least not the way you are doing it. The only parameter that VideoLibrary.Scan accepts is the complete path to the directory you want to scan.

http://wiki.xbmc.org/?title=JSON-RPC_API...brary.Scan

If you know the common parent directory for all the TV shows, you could build the complete path.

hi thanks for the info.
when sanning paths, can i supply an array of file paths, and if so will it scan each in turn
Or would i need to pass one path at a time and wait till first path has finished scanning.

The API documents are pretty clear. You can only supply one path at a time. If you want to scan more than one, you have to send a separate JSON request.

Thanks, i have seen some examples to update a single TVshow path, but how would i go about updating say 10 shows
What i am trying to do is run an addon that will update just for example 10 shows (favorites) then shut down.
I can then go into my smart playlist and show 10 shows only and then be able to go into anyone of these show
with the new Content that has just been added.
I could go one step further and once my 10 shows have been scanned, i can then go ahead and scan all video Library

can anyone help or point me in right direction. (am best as example scripts to modify and suit my needs) but willing to
try from scratch if need be.

thanks
Reply
#6
well. i finally managed to get an addon that will scan a list of paths to my favourite tv shows, and then run a full update library scan after.
this way i can open my playlist of favorite shows and watch an episode while a full update is going on.

yehhhh
Reply

Logout Mark Read Team Forum Stats Members Help
updatelibrary by TV Show Name0