2013-05-04, 18:00
just wanted to know if its possible to send a command from a PC ie a URL or JSOn api that would update a particular folder with an nfo file that exists in the folder and all images etc
(2013-05-04, 18:00)k_zeon Wrote: just wanted to know if its possible to send a command from a PC ie a URL or JSOn api that would update a particular folder with an nfo file that exists in the folder and all images etconce a movie is on the database you can not retrigger a rescan on that one.
(2013-05-04, 23:44)k_zeon Wrote: But if i did want to add a new movie and not update it, can this be done
(2013-05-04, 22:44)k_zeon Wrote: looking at the script i see
Code:def scanDirectory(self, scanMethod, path=None):
if path and path != "":
self.logger.out("Rescanning directory: %s..." % path, newLine=True, log=True)
REQUEST = {"method": scanMethod, "params":{"directory": path}}
else:
self.logger.out("Rescanning library...", newLine=True, log=True)
REQUEST = {"method": scanMethod, "params":{"directory": ""}}
self.sendJSON(REQUEST, "libRescan", callback=self.jsonWaitForScanFinished, checkResult=False)
so could i do:
http://192.168.1.64:8080/jsonrpc?request={"method": scanMethod, "params":{"directory": path}}
(2013-05-04, 22:44)k_zeon Wrote: I have seen elsewhere something like (below) but have not tried it yet.
http://192.168.1.64:8080/jsonrpc?request={"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"smb://nas4free/files2/Movies/"}}