[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 - redglory - 2013-11-30 (2013-11-30, 09:23)MilhouseVH Wrote: Just an update to say I've now reproduced the problem reported by redglory and the fix in v1.2.1 does the trick!I can confirm it is running at the moment! Let's wait for it to finish Will report back WOW, ETA.... 17 hours RE: [RELEASE] Texture Cache Maintenance utility - redglory - 2013-11-30 It's done but I had some errors while caching due to slash's: Here's the log I suppose I need to re-run mklocal for banner to fix this slashed url's and then re-cache. Running your command now as: Code: python texturecache.py fixurls | texturecache.py set @logfile=logs/tc2.log It seems to be fixing... RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-11-30 (2013-11-30, 13:11)redglory Wrote: It's done but I had some errors while caching due to slash's: The simplest method for fixing slashes is: Code: ./texturecache.py fixurls | ./texturecache.py set Note: if you're logging output, you may want to specify an alternate log on the second invocation of texturecache.py to avoid wiping out the first log eg: Code: ./texturecache.py fixurls | ./texturecache.py set @logfile=/tmp/tc2.log RE: [RELEASE] Texture Cache Maintenance utility - russg - 2013-11-30 MilhouseVH, I don't know how many times I've started to work on a script to do some parts of what yours does but its suffice to say that something else always took precedence. In this case, my laziness has paid off because your work is far superior to anything I would have hacked together. Your work has made my RBpi box shine again and I humbly thank you for that. I've read the entirety of this thread and it was cool to read the evolution of your work. Have you considered a client/service model? It just crossed my mind while reading this thread. You have some functions that can work remotely over the web/json interface but there are parts that must have access to the instance filesystem. If there were a service add-in that could be called through the web/json interface you could possibly just command the service install to do those local operations you need in some functions. There are likely details that I'm not aware of that may prevent such a configuration. And maybe it is best that some of the evolution of this processing become native to XBMC. Great stuff and again thank you! RE: [RELEASE] Texture Cache Maintenance utility - redglory - 2013-11-30 Caching done (for movies...) took A LOT! ehehe I'm going to prune because I don't use landscape and I've deleted every landscape.jpg inside my movies structure. Finished: Code: Summary: 213 files; Total size: 56,374 KB RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-01 (2013-11-30, 18:46)russg Wrote: Have you considered a client/service model? It just crossed my mind while reading this thread. The majority of operations can now be performed entirely remotely. Gotham has added a JSON API for the texture database which means it is no longer necessary to have direct access to the userdata folder when pruning and caching. The only options that still require direct access are those that involve walking the thumbnails folder or checking if a particular thumbnail file exists (r/R, f, X, Xd etc.). If/when JSON Files.GetDirectory() adds support for the contents of the thumbnails folder, all operations will be possible remotely. RE: [RELEASE] Texture Cache Maintenance utility - russg - 2013-12-01 (2013-12-01, 13:40)MilhouseVH Wrote: The majority of operations can now be performed entirely remotely. Gotham has added a JSON API for the texture database which means it is no longer necessary to have direct access to the userdata folder when pruning and caching. The only options that still require direct access are those that involve walking the thumbnails folder or checking if a particular thumbnail file exists (r/R, f, X, Xd etc.). If/when JSON Files.GetDirectory() adds support for the contents of the thumbnails folder, all operations will be possible remotely. Nice! I really don't mind not having remote but it seemed there was some interest in the thread. I know you've said you had no interest in a add-on but having this in a web add-on would be really cool. Since more than one web add-on can be loaded this wouldn't have to integrate into anything else. Obviously this sounds so simple from the one not doing the work. I noted that the mklocal.py header text says you can run the program without options for help output but I believe that's wrong. It would seem if it runs that way it just waits for maybe stdin? RE: [RELEASE] Texture Cache Maintenance utility - Martijn - 2013-12-01 I will make an add-on for this RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-01 (2013-12-01, 15:06)russg Wrote: I noted that the mklocal.py header text says you can run the program without options for help output but I believe that's wrong. Yes, you're right - thanks. I've changed the header to say you need to pass the --help parameter. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-01 texturecache.py (Version 1.2.2)
RE: [RELEASE] Texture Cache Maintenance utility - capfuturo - 2013-12-01 @Martijn: according to the wiki the texture cache in the future will be auto-cleansing. Do you know if there is any time-line for this implementation in XBMC or is it pretty much loose at the moment? @MilhouseVH: can your texture cache maintenance utility be used to clean this? Thanks in advance for any information on the matter. RE: [RELEASE] Texture Cache Maintenance utility - russg - 2013-12-01 (2013-12-01, 20:41)capfuturo Wrote: @MilhouseVH: can your texture cache maintenance utility be used to clean this? Excuse me for jumping in. It seems to me that you can use texturecache.py to clear up the issue you linked to. You can achieve it in several ways. If all that's change is the original file content and not the location and/or name then the "C" option can be used to force cache update. You can use other options to view the location the cache was pulled from and modify it as well. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-02 (2013-12-01, 20:41)capfuturo Wrote: @MilhouseVH: can your texture cache maintenance utility be used to clean this? I've added "Extras" folder support to v1.2.3 of texturecache,py (just pushed to git). Enable with "@cache.videoextras=yes" or "@cache.extra=yes" (the latter also enabling extrafanart and extrathumbs). Having enabled this support you should be able to prune and cache the extras artwork. Note that only the Extras (or extras) subfolder is supported, not -extras- (same directory) or a remote location. RE: [RELEASE] Texture Cache Maintenance utility - capfuturo - 2013-12-02 (2013-12-02, 01:23)MilhouseVH Wrote:@MilhouseVH: thank you very much for this addition that will surely help many. You are a gentleman.(2013-12-01, 20:41)capfuturo Wrote: @MilhouseVH: can your texture cache maintenance utility be used to clean this?I've added "Extras" folder support to v1.2.3 of texturecache,py (just pushed to git). Enable with "@cache.videoextras=yes" or "@cache.extra=yes" (the latter also enabling extrafanart and extrathumbs). Having enabled this support you should be able to prune and cache the extras artwork. Note that only the Extras (or extras) subfolder is supported, not -extras- (same directory) or a remote location. @rusgg: thank you mate for getting back with help, I appreciate it. RE: [RELEASE] Texture Cache Maintenance utility - Dilligaf - 2013-12-02 I deleted all *.tbn files from my media folders, what command would delete all references to *.tbn from my library? I find that texturecache.py is still looking for them if I run texturecache.py C, what command should I run to delete *.tbn references and force *.jpg downloads? |