updatelibrary by TV Show Name - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: updatelibrary by TV Show Name (/showthread.php?tid=195351) |
updatelibrary by TV Show Name - k_zeon - 2014-05-16 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 RE: updatelibrary by TV Show Name - pkscout - 2014-05-18 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/v6#VideoLibrary.Scan If you know the common parent directory for all the TV shows, you could build the complete path. RE: updatelibrary by TV Show Name - k_zeon - 2014-05-18 (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. 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 RE: updatelibrary by TV Show Name - pkscout - 2014-05-19 (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. 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. RE: updatelibrary by TV Show Name - k_zeon - 2014-05-22 (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. 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 RE: updatelibrary by TV Show Name - k_zeon - 2014-05-24 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 |