[RELEASE] Texture Cache Maintenance utility
From @pgjensen:

Your config:
Code:
[email protected]:~$ cat /usr/local/bin/texturecache.cfg
userdata = /mnt/storage2/xbmc/userdata
dbfile = Database/Textures13.db
thumbnails = Thumbnails
xbmc.host = 192.168.2.2
webserver.port = 8000
webserver.username = xbmc
webserver.password = HIDDEN
rpc.port = 9090
download.threads = 8

logfile = /home/user/texturecache.log
logfile.verbose = yes

Your log:
Code:
[email protected]:~$ cat texturecache.log
2014-09-11 11:26:51.286353:MainThread: Command line args: ['/usr/local/bin/texturecache.py', 'c', 'artists']
2014-09-11 11:26:51.286427:MainThread: Current version #: v1.7.6
2014-09-11 11:26:51.286460:MainThread: Current platform : linux2
2014-09-11 11:26:51.286496:MainThread: Python  version #: v2.7.3.0 (final)
...
2014-09-11 11:26:51.312188:MainThread: JSON Texture DB API available and will be used to access the Texture DB

You tell me (in a PM) that /mnt/storage2/xbmc/userdata is mounted on the host that is 192.168.2.2.

I'm still not clear on what exactly you're trying to do, but from the information you've told me it looks like you're trying to populate a mounted userdata folder with cached artwork, using a kodi client listening on 192.168.2.2.

Thing is, the Kodi client is updating it's own userdata folder which may not be the same userdata folder you have configured the script to use. And since the introduction of the JSON Textures API, the script isn't even going to be accessing the userdata folder so even though you have a userdata folder mounted and configured, it's not being used by the script (or, I'm assuming, the Kodi client).

I don't know if the userdata folder you have mounted is the same userdata folder in use by the client listening on 192.168.2.2, but if it's not (and I'm guessing it's not) then that would explain why it's not being updated - because the client on 192.168.2.2 is looking at it's own userdata folder and updating that folder.

There is no way for you to pre-load the cache of a remote userdata folder using a Kodi client that is configured to use a different userdata folder.

The best way to accomplish what you want to do is rsync at boot.

Or, alternatively, connect in turn to each client and pre-load their cache - don't try and use some sort of "proxy" Kodi client to update each userdata folder.

Should you want to configure multiple clients, add "[sections]" to your texturecache.cfg which makes scripting updates to each client much easier, for instance:
Code:
webserver.port = 8000
webserver.username = xbmc
webserver.password = HIDDEN
rpc.port = 9090
download.threads = 8

logfile = /home/user/texturecache.log
logfile.verbose = yes

[master]
xbmc.host = 192.168.2.2
network.mac = aa:bb:cc:dd:ee:00

[lounge]
xbmc.host = 192.168.2.3
network.mac = aa:bb:cc:dd:ee:01

[bedroom]
xbmc.host = 192.168.2.4
network.mac = aa:bb:cc:dd:ee:02

Then, to update the cached movie artwork for all three clients:
Code:
texturecache.py c movies @section=master
texturecache.py c movies @section=lounge
texturecache.py c movies @section=bedroom
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
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


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 - 2014-09-24, 04:03
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 utility4.7617