2015-09-14, 16:37
(2015-09-14, 16:09)yongbi Wrote: Hello,
I have quite a big library with a lot of external sources, I want to perform the C option (delete and recache) but can it be specified for a source ?
Not for a source, but you could try selecting based on the path.
Assuming the root of your "TV Series2" source has the path "nfs://192.168.0.3/mnt/share/media/Video/TVSeries2/", then
Code:
./texturecache.py C tvshows @filter=path @filter.operator=startswith "nfs://192.168.0.3/mnt/share/media/Video/TVSeries2/"
will force re-cache those tvshows that are located on the same path.
You can view the tvshows that would be selected as follows:
Code:
./texturecache.py jd tvshows @filter=path @filter.operator=startswith "nfs://192.168.0.3/mnt/share/media/Video/TVSeries2/" @query.seasons=no | grep title
(2015-09-14, 16:09)yongbi Wrote: Or does the normal ./texturecache.py C tvshows will do the trick ? i.e. is it checking for online sources before deleting all related texturecache items ?
No, texturecache.py doesn't check for online sources before deleting cached artwork - that's a risk you need to manage.
(2015-09-14, 16:09)yongbi Wrote: I am using sickrage and sometimes the .nfo of an episode is not fully available (episode summary and such) at the moment i grab it and kodi does a library update but the summary wasnt available at that time. So i need to delete completely the texturecache and reload.
If you just want to reload episodes once the nfo has been updated, you could use the qax option telling it to refresh any episode with a recently updated nfo, eg.
Code:
./texturecache.py qax tvshows @qaperiod=9999 @qa.nfo.refresh=1
The qax option will also refresh episodes when the episode thumb is missing from the library but found in the local file system (because the thumbnail wasn't available when the episode was first scraped, but has turned up a day later).
Running qax daily should fix minor issues such as updated nfos and delayed episode thumbs.