2014-01-23, 06:02
(2014-01-23, 00:39)jacintech.fire Wrote: Maybe I am wrong; but the JSON API allows you to do a library or per directory update. You can even use curl from the command line...
You're not entirely wrong, however rescanning the library won't reload the NFO for an item that is already present in the library. What you need to do is remove the media item then re-scan so that the media item (including updated NFO) is reloaded - effectively what the "Refresh" GUI option does.
If you want to automate this try the script in my sig which supports this behaviour with the "qax" option (description of feature here).
For instance, if you have updated a bunch of movie NFOs and want just the modified items to be reloaded:
Code:
./texturecache.py qax movies @qaperiod=-1 @qa.nfo.refresh=today
The qa/qax options are designed to identify media with "quality problems" - ie. missing artwork, or with blank fields (eg. plot). You can configure these "rules" yourself. The default is to "fail" movies or tvshows with missing artwork (fanart/poster and fanart/poster/banner/thumb respectively) and blank plots. The "qa" option will identify the media items with incomplete metadata, and the qax will go one step further and force reload them (remove, then rescan).
You will, unfortunately, lose any remote artwork associated with your re-scanned media, so it's best to have all your artwork stored locally if you expect it to be there once the movie (or tvshow/episode) is "added back" - consider using the mklocal.py script (available in the same github repo) to convert remote artwork to local. If you want to (re-)assign non-standard artwork (ie. artwork other than fanart and poster, such as clearlogo or discart) to your movies/tvshows then again you can use the mklocal.py script.