Re-scan NFO's and update library
#13
(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
will reload any NFO modified since 00:00:00 today. Specify a positive number for relative periods, ie. @qa.nfo.refresh=1 for modifications since yesterday 00:00:00, or specify an absolute date/time.

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.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply


Messages In This Thread
Re-scan NFO's and update library - by mrcc - 2012-09-19, 16:14
RE: Re-scan NFO's and update library - by Milhouse - 2014-01-23, 06:02
Logout Mark Read Team Forum Stats Members Help
Re-scan NFO's and update library0