[RELEASE] Texture Cache Maintenance utility
(2015-11-18, 00:10)Nepomuk Wrote: can you make a example for a windows-batch-file where more then on command is in use please?

It's just a text file, one command on each line...

@echo off
c:\texturecache.py c movies
c:\texturecache.py c tvshows
c:\texturecache.py imdb movies | c:\texturecache.py set
c:\texturecache.py imdb tvshows | c:\texturecache.py set

would work, assuming you have texturecache.py and (if needed) texturecache.cfg in c:\, and the python path is added to your PATH variable (see guide for Windows users).

(2015-11-18, 00:10)Nepomuk Wrote: Where I can use the sep = | in the texturecache.cfg? For what's that seperator?

I have tried to persuade people *NOT* to use values in their texturecache.cfg that they don't need (because they're the same as the default value), or understand. I've provided a sample file on github, which was probably a mistake, and it's not intended that you use it verbatim/as-is - most people don't need a configuration file at all.

Regarding the sep field, it's the separator between fields in the output from the "s" option, eg.:
./texturecache.py s avatar @sep=#
014301#f/f6fd12f4.png#0562#1000#0002#2015-07-10 03:27:49#2015-07-10 04:27:48#nfs:// (2009)[DVDRip]-clearart.png
014829#0/05ae89b1.png#0310#0800#0002#2015-07-10 03:31:25#2015-07-10 04:31:10#nfs:// (2009)[DVDRip]-logo.png
015466#d/d843551b.jpg#0000#0000#0294#2015-09-13 22:27:39#2015-09-13 23:27:01#nfs:// (2009)[DVDRip]-fanart.jpg
016161#c/cfdfd21f.jpg#0000#0000#0329#2015-10-26 08:23:13#2015-10-25 23:27:09#nfs:// (2009)[DVDRip]-poster.jpg
Matching row ids: 14301 14829 15466 16161

I very much doubt there's any reason to change the value of sep, but the option is there...

(2015-11-18, 00:10)Nepomuk Wrote: When I have a texturecache.cfg in the same folder as texturecache.py - have I use it in the command string like e.g. "texturecache.py C movies @config=texturecache.cfg" or can I omitting "@config=texturecache.cfg"?

No, it will be used automatically. If you use the "config" option it will display the name and path of the texturecache.cfg being used:
~/projects$ ./texturecache.py/texturecache.py config
Current properties (if exists, read from /home/neil/projects/texturecache.py/texturecache.cfg):

The @config property is only needed when the configuration file is not found in one of the default locations, or is not using the default name (texturecache.cfg).

(2015-11-18, 00:10)Nepomuk Wrote: I have scraped my movies and TVshows with EmberMediamanager and not with kodi. So all needed files e.g. movie.nfo, movie-fanart.jpg, movie-clearlogo.png ... are local in every movie folder. The Thumbnails-Folder is substitute to my server. This folder blow up more and more. Now I want to synch mysql-kodi-db and every local Textures13.db with the movie files.

Path substitution of the Thumbnails folder when shared between multiple clients is explained quite clearly in the Kodi Wki (see contents of the orange box) as being an unsupported option, and one that doesn't work. Just stop using it, and use local Thumbnails folders on each client or provide each client with their own network folder, but whatever you do, do not share Thumbnails folders.

(2015-11-18, 00:10)Nepomuk Wrote: I do not want that texturecache.py download informationen from the WAN and save this in the different db's or in the .nfo-file. Do I need a special parameter that texturecache.py read/use only the local files or informations?

If you don't want the script to cache remote artwork (ie. artwork where the path begins with http) then add the following to your texturecache.cfg:

and this will add (hence the +) the ^http pattern to the existing ignored "types" (the default value is " ^video, ^music", which ignores embedded video and music artwork, as these can't be cached by this script).

(2015-11-18, 00:10)Nepomuk Wrote: Does texturecache.py synch the extra-arts and special-arts like extrathumb.jpg or clearlogo.png too?

Yes, "extra-arts" will be cached if you add the following to texturecache.cfg:
cache.extrafanart = yes
cache.extrathumbs = yes

Also, VideoExtras is supported:
cache.videoextras = yes

The default for all of the above settings is "no".

"special-arts" (clearlogo.png etc.) will be cached automatically, as will any artwork type referenced by your media library, eg. discart, clearart etc.

Use "cache.artwork" to cache specific artwork, eg. "cache.artwork=poster,fanart" would cache only poster and fanart - the default is to cache all artwork referenced by the media library.

Note that extrafanart/extrathumbs/videoextras artwork is not referenced by the media library, hence the separate options to enable this functionality (which is barely tested, by the way, as I doubt anyone has used it until now...).

(2015-11-18, 00:10)Nepomuk Wrote: I do not understand the principle/expiration of texturecache.py.
Does the script look first in the kodi.db (mysql-db), find the path to a movie, synch then textures13.db
does the script look in the movie sources first then add/synch the informations in kodi.db then synch textures13.db?

The former - the script compares the artwork paths from the media library against the artwork paths from the texture cache, and caches whatever is missing. In the case of extrafanart/extrathumbs/videoextras artwork, the script scans the directories for the relevant artwork (and then compares against the texture cache).
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.

Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by Milhouse - 2015-11-18, 01:11
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17
This forum uses Lukasz Tkacz MyBB addons.