[RELEASE] Texture Cache Maintenance utility - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: [RELEASE] Texture Cache Maintenance utility (/showthread.php?tid=158373) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
RE: [RELEASE] Texture Cache Maintenance utility - rosede - 2020-05-04 Some of my movies have fanart and posters that were on a shared device. That device was removed long ago, but the posters and fanart appear to be still defined somewhere. texturecache just throws up errors. I'm guessing it can't remove the items because they are long gone. What options, or combination of options can I use to force the removal of these items? Thanks Daryl RE: [RELEASE] Texture Cache Maintenance utility - rosede - 2020-05-05 (2020-05-04, 17:40)rosede Wrote: Some of my movies have fanart and posters that were on a shared device. That device was removed long ago, but the posters and fanart appear to be still defined somewhere. texturecache just throws up errors. I'm guessing it can't remove the items because they are long gone. What options, or combination of options can I use to force the removal of these items? I couldn't get texturecache.py to clean out the old missing fanart and posters, so I logged into the database and removed them manually. I re-ran texturecache.py attempting to re-cache the thumbnails and artwork. At first all looked good. Some of the missing items were recached, but others, were not. There are several missing items that need to be recached, but texturedcache.py just skips them. Quote:Cache pre-load activity summary for "movies": I've enabled logging, but I don't see any errors. Why can't texturecache.py recache these missing items? Thanks Daryl RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2020-05-11 (2020-05-03, 22:17)WolfIsMyName Wrote: Hey folks, I've pushed v2.5.4 which should at least help with the first "isatty" issue. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2020-05-11 (2020-05-05, 18:52)rosede Wrote: I couldn't get texturecache.py to clean out the old missing fanart and posters, so I logged into the database and removed them manually. I re-ran texturecache.py attempting to re-cache the thumbnails and artwork. At first all looked good. Some of the missing items were recached, but others, were not. There are several missing items that need to be recached, but texturedcache.py just skips them. The mklocal.py script will fix these - there's a link at the bottom of the first post.Basically you pipe the output of jd movies through mklocal.py and let it generate commands that will update your artwork - if the artwork doesn't exist or isn't accessible (and you specify the mklocal.py options --read-only --nokeep ) then the command to remove the artwork will be generated. Then, finally, run the commands through texturecache.py to apply them to your library.(2020-05-05, 18:52)rosede Wrote:I've enabled logging, but I don't see any errors. Why can't texturecache.py recache these missing items? The only line to worry about is the ERROR line - it says there were 158 errors, which would correspond to artwork items that cannot be downloaded by Kodi, so check your kodi log for errors. RE: [RELEASE] Texture Cache Maintenance utility - WolfIsMyName - 2020-05-11 (2020-05-11, 19:32)Milhouse Wrote:Thank you so much, it's the biggest breakthrough I've had in weeks. Sadly I'm now faced with another issue : https://paste.kodi.tv/zocifiwuve.kodi(2020-05-03, 22:17)WolfIsMyName Wrote: Hey folks, RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2020-05-12 (2020-05-11, 20:35)WolfIsMyName Wrote: Thank you so much, it's the biggest breakthrough I've had in weeks. Sadly I'm now faced with another issue : https://paste.kodi.tv/zocifiwuve.kodi I don't know what command you are running, but I would suggest redirecting stderr to /dev/null as you don't need that to appear in the kodi log, and you might also want to redirect stdout to a separate file, for example:where you replace YOURARGSHERE with c movies (or whatever).Remove >/tmp/stdout.log if you want the script output to appear in kodi.log.Upload the log file /tmp/tc.log (along with kodi.log and/or /tmp/stdout.log ) if you still have problems and I'll see what I can do (but I don't test on Android and am not very familiar with that environment from a Python point of view - it's usually fairly locked down).
RE: [RELEASE] Texture Cache Maintenance utility - WolfIsMyName - 2020-05-12 (2020-05-12, 00:49)Milhouse Wrote:Yeah I see what you mean, struggling with it for weeks now. I was able to generate the tc.log file: https://paste.kodi.tv/moderosuke.kodi , kodi.log remains the same: https://paste.kodi.tv/ruxawejeco.kodi. I hope that helps, thank you once again.(2020-05-11, 20:35)WolfIsMyName Wrote: Thank you so much, it's the biggest breakthrough I've had in weeks. Sadly I'm now faced with another issue : https://paste.kodi.tv/zocifiwuve.kodi RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2020-05-13 (2020-05-12, 23:55)WolfIsMyName Wrote: Yeah I see what you mean, struggling with it for weeks now. I was able to generate the tc.log file: https://paste.kodi.tv/moderosuke.kodi , kodi.log remains the same: https://paste.kodi.tv/ruxawejeco.kodi. I hope that helps, thank you once again. The script appears to have executed (and exited) successfully, and there's nothing in your cache to prune at this time. From the texturecache log: so I'm not really sure why Kodi believes the script has "aborted" - perhaps that's just something kodi logs whenever an executed script exits and is nothing to worry about? Other than the noise from stdout/stderr, it all looks fine... RE: [RELEASE] Texture Cache Maintenance utility - WolfIsMyName - 2020-05-15 (2020-05-13, 19:54)Milhouse Wrote:Yes, I can now confirm the script works as expected, except for the strange messages. Thank you for the support.(2020-05-12, 23:55)WolfIsMyName Wrote: Yeah I see what you mean, struggling with it for weeks now. I was able to generate the tc.log file: https://paste.kodi.tv/moderosuke.kodi , kodi.log remains the same: https://paste.kodi.tv/ruxawejeco.kodi. I hope that helps, thank you once again. I should note that in order to make it work I had to replace this peace of code on row 8657: https://paste.kodi.tv/lesaxaquqo with this one: https://paste.kodi.tv/ugakolewir RE: [RELEASE] Texture Cache Maintenance utility - yhs4260 - 2020-05-18 Hey, I have recently changed my database from local to mysql. Images are now taking a long time to load. Everything is cached using 'c', but the images are still loading from file rather than the texturecache db. Am I missing something when using mysql? The queries come back super quick after some optimisation, however it looks like the full image is being loaded from the thumbnail folder. What can I do to figure out why its not coming from the texturecache? Cheers RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2020-05-27 (2020-05-18, 12:02)yhs4260 Wrote: Hey, The Texture Cache system has nothing to do with MySQL, so switching to a MySQL shared database should not result in any change to texture cache behaviour. I'm not entirely sure what the problem is - are you expecting the cached images to be stored in (and retrieved from) the Textures13.db SQLite database - because that's not how it works. The database is only used to store references to the cached artwork files that are stored in (and retrieved from) the Thumbnails folder, so if you see the cached artwork being retrieved from the Thumbnails folder (and not from the original artwork source location) then the texture cache is working as expected.
RE: [RELEASE] Texture Cache Maintenance utility - Raytestrak - 2020-05-29 Is it possible to NOT process a certain source? I have 8Gb storage in my mediaplayer and 1Tb of photo's I use as a slideshow screensaver. To prevent them from being cached, they're mounted in my skin folder (which isn't cached). texturecache.py sources shows it like this: pictures: Fotos: special://skin/_fotos/Public. When I purge my texturecache, it still processes my pictures even though I have prune.retain.pictures = yes in my texturecache.cfg. Loading Pictures takes about 15-20 minutes to finish, but there's never anything to clear so I was wondering if I could bypass it all together. Would be a nice feature too ./texturecache -P <source>, but that's because I have pseudo OCD. Whenever I delete a movie for instance, I run texturecache.py RE: [RELEASE] Texture Cache Maintenance utility - J_E_F_F - 2020-05-30 running Rp2 #0527 and texturecache v2.5.4 A recent libreelec update required me to set a web server user/password, and I get the following error: Code: # texturecache.py c I see that I need to edit texturecache.cfg, I tried both #locate and #find, and they don't seem to work. I checked /.kodi/userdata and it isn't there either. Where can I find texturecache.cfg ? Edit* Got it, just created the file myself in /storage/.config RE: [RELEASE] Texture Cache Maintenance utility - J_E_F_F - 2020-05-30 RP3 on build #0527, though this happened during the last build, and continues even reverting back to #0404 and moving forward. Any idea how I can get it to scan/recache the missing images? The database is stored in MySql on a remote Win10 PC. Both the RP3 and MySql systems have been rebooted. Music and TV Shows are fine, just Movies are not showing. I have tried the following: # texturecache.py c movies # texturecache.py C movies # texturecache.py c The original post example shows ./texturecache.py c movies (with ./) but using that errors with ./texturecache.py not found. None have helped, and I get mostly errors as seen below: How can I correct my images problem? RE: [RELEASE] Texture Cache Maintenance utility - shred00 - 2020-05-31 I tried searching and couldn't find an answer. This is a huge thread so maybe the needle is in the haystack somewhere and I just couldn't find it. Apologies if that's the case. I want to regularly clean out stale thumbnails. From what I understand I want the P option for that, and the p option is a "dry-run" version of that. Am I correct so far? I also have half-a-dozen profiles. Do I simply run
for each profile or is there a more efficient way to run it for all profiles at once? The latter would be nice as it means not having to keep updating the script calling texturecache.py if I make profile changes. |