[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 - Milhouse - 2017-05-25 (2017-05-25, 21:12)martyz Wrote: and I have no idea how run python script directly on ATV... Ah, just noticed this - if you're not running the script on the ATV then you can't use the R option. See previous reply a few posts back. RE: [RELEASE] Texture Cache Maintenance utility - martyz - 2017-05-26 @Milhouse Actually I left "thumbnails" intact - I tried to find best setting for "userdata" property, when I downloaded data container from KODI app on tvOS, it shows path Code: /AppData/Library/Caches/home/userdata/ Thx and nice weekend to everyone! RE: [RELEASE] Texture Cache Maintenance utility - martyz - 2017-05-26 (2017-05-25, 22:19)Milhouse Wrote:(2017-05-25, 21:12)martyz Wrote: and I have no idea how run python script directly on ATV... blind me, found your post today, so manually deleting probably only way, correct ? thx RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-05-26 Probably, yes. RE: [RELEASE] Texture Cache Maintenance utility - RonnieG3 - 2017-06-24 @millhouse - I had to manually delete some add-ons from the user data folder (some old incompatible add-ons that caused an endless cycle of crashing). Things work great now, but in my add-ons section, most are still listed and won't let me uninstall something that isn't there. I could have sworn there was a way to use your tool to clean up what's showing, but I only see reference to add-on thumbs sometimes getting cleaned. Do I have your tool mixed up with another one? Forgive me if i do, but I figured it'd just be best to ask. Thanks RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-06-24 Must be something else, as there's only a very limited number of JSON methods to execute, view and enable/disable addons but nothing to remove/uninstall addons. If non-existant addons continue to be listed and can't be uninstalled via the GUI then you should probably open a trac ticket. RE: [RELEASE] Texture Cache Maintenance utility - RonnieG3 - 2017-06-24 Thanks for getting back to me. I'll restart, let clean run, and see what I might be able to do. RE: [RELEASE] Texture Cache Maintenance utility - Buhric - 2017-07-08 @Milhouse got a question for you 1st really nice work on the mklocal.py and texturecache.py scripts. It does exactly what I wanted. But now... here's my question Running the scripts it looks like it uses the "Texture" database of Kodi..... But does it also modify the "art" table in the "MyVideos##" Main Kodi database ? Because I believe that the Texture database is created based on the information in the "art" table..... Here's an example: In my case I have a Synology, it contains all my movies and also the Kodi main database MyVideos## If I was to install Kodi on a computer and configure it to use my existing Kodi database, it would recreate a Textures database locally on the machine based on the info found in the MyVideos## database, no ? thus re-using all the HTTP link, and not the actual local images (located in the Synology with the movies) RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-07-08 (2017-07-08, 21:43)Buhric Wrote: In my case I have a Synology, it contains all my movies and also the Kodi main database MyVideos## Correct, Kodi will only cache the urls that are in your media library. If you've got local artwork it will be ignored until you replace the remote artwork urls with your local urls - that's what mklocal.py is for, although mklocal.py doesn't make any changes to your library. You use mklocal.py to generate the remote-to-local changes that you then apply to your media library using texturecache.py - if you don't apply those changes (using "texturecache.py set") then nothing will be changed in your media library. It sounds like you're not running this final step. RE: [RELEASE] Texture Cache Maintenance utility - MasterCATZ - 2017-07-09 Thank you very much, script worked wonders unsure why kodi would not even remove the content I kept telling it too as I could not get Kodi to refresh for the last week or so and all recently added were all blank thumbnails and I did not want to delete my 300gig worth of thumbnails to try and reload/rescan *edit* no that's including actor, fan art, etc it's staying unsure when they changed it but its been years since content was saved in the local folder that held the content over a decade now xbmc/kodi has been working for me just glad to have gotten it all working again spent almost 2 full days trying to solve thought the scrapper needed to be updating and all addon updates were failing, rebuilt kodi numerous times, finally seemed to have found the issue RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-07-09 300GB of thumbnails??!! Blimey, maybe it's time for a purge...! RE: [RELEASE] Texture Cache Maintenance utility - Buhric - 2017-07-09 (2017-07-08, 22:10)Milhouse Wrote: Correct, Kodi will only cache the urls that are in your media library. If you've got local artwork it will be ignored until you replace the remote artwork urls with your local urls - that's what mklocal.py is for, although mklocal.py doesn't make any changes to your library. You use mklocal.py to generate the remote-to-local changes that you then apply to your media library using texturecache.py - if you don't apply those changes (using "texturecache.py set") then nothing will be changed in your media library. It sounds like you're not running this final step. Thank Milhouse, I was in fact not doing that last step.... My reasoning was flawed, because the 1st time I tried to run the mklocal.py and texturecache.py, I was running it from within the Synology and I was getting an error as it was not able to find the Texture database.... Once I ran it from my windows machine running Kodi, it downloaded everything fine ... I did not ran the "set" command because I was not sure of the outcome and didn't want to corrupt my database ... So I thought that it was only modifying the Texture database and not the MyVideo## database.... So today, I backed up my database, and ran the command Code: type fixup.dat | texturecache.py set And voila !! all is good thanks a bunch once again ! RE: [RELEASE] Texture Cache Maintenance utility - steve1977 - 2017-07-09 Using this tool the first time to cache my albumart for faster scrolling in the album list. Looks like it should do this. Below the result from running "nc": Cache pre-load activity summary for "addons/agenres/vgenres/albums/artists/movies/sets/tvshows": | banner | fanart | poster | season.banner | season.poster | thumb | thumbnail | TOTAL --------------+-------------+-------------+-------------+---------------+---------------+-------------+-------------+------------- Cached | - | - | - | - | - | - | - | 0 Deleted | - | - | - | - | - | - | - | 0 Duplicate | 16087 | 17553 | 16094 | 5676 | 15086 | 277 | - | 70773 Error | - | - | - | - | - | - | - | 0 Ignored | - | - | - | - | - | 78 | 3153 | 3231 Not in Cache | 165 | 5 | 691 | 309 | 313 | 13150 | 63 | 14696 Season-all | 163 | - | 163 | - | - | - | - | 326 Skipped | 175 | 8680 | 8083 | - | 2 | 2451 | 307 | 19698 Undefined | - | 8211 | - | - | - | - | 8244 | 16455 ================================================================================================================================== TOTAL | 16590 | 34449 | 25031 | 5985 | 15401 | 15956 | 11767 | 125179 Loading: 00:01:47.23 Parsing: 00:00:18.94 Comparing: 00:00:14.29 TOTAL RUNTIME: 00:02:35.87 And below the error message when running "c": C:\>texturecache.py c Traceback (most recent call last): File "C:\texturecache.py", line 8618, in <module> main(sys.argv[1:]) File "C:\texturecache.py", line 8311, in main if not checkConfig(argv[0]): sys.exit(2) File "C:\texturecache.py", line 7851, in checkConfig data = wcomms.sendJSON(REQUEST, "libPing", checkResult=False, useWebServer=True) File "C:\texturecache.py", line 2223, in sendJSON return self.sendWeb("POST", "/jsonrpc", id, request, {"Content-Type": "application/json"}, timeout=timeout) File "C:\texturecache.py", line 2210, in sendWeb return json.loads(data) if data != "" else "" File "C:\Python27\lib\json\__init__.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded Thanks in advance! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-07-09 (2017-07-09, 04:51)steve1977 Wrote: And below the error message when running "c": Whatever is listening on the configured webserver.port (default 8080) isn't Kodi. RE: [RELEASE] Texture Cache Maintenance utility - steve1977 - 2017-07-09 Got it, thanks. Looks like I need to turn on the webserver. Let me give it another try. |