[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 - paulski999 - 2018-07-16 (2018-07-15, 05:41)Milhouse Wrote:(2018-07-14, 20:25)Milhouse Wrote: The crash is caused by a PR being tested in recent nightly builds (since #0708). The issue you have discovered will be fixed in #0714 tonight - many thanks! RE: [RELEASE] Texture Cache Maintenance utility - fbacher - 2018-08-14 I am new to this tool, only spent 4 hours with it so far trying to figure out how to solve my problem(s). I'm using Kodi 18, so perhaps that is my problem... We use kodi iphone apps as well as the web addons (Chorus). They require thumbnails for movies. Somewhere along the way I blew away many of the thumbnails. I am trying to regenerate them with texturecache.py, but so far without success. I notice that if in Kodi, I simply view the artwork via Info/Choose art, then the thumbnail for the movie will show up in chorus. How can accomplish this with texturecache for all of my movies? This is a great tool, I was able to garbage collect 8 years worth of garbage as well as to find and fix a few things. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-08-14 (2018-08-14, 02:27)fbacher Wrote: I notice that if in Kodi, I simply view the artwork via Info/Choose art, then the thumbnail for the movie will show up in chorus. How can accomplish this with texturecache for all of my movies? If the artwork is embedded, there's no way to force Kodi to cache the thumbnails automatically - you have to manually navigate through the Kodi GUI and Kodi will slowly extract the artwork from the video or music files, creating the cached thumbnail versions. If the thumbnails are remote (downloaded from the internet) or local (stored alongside the video/music files) then texturecache.py c movies etc. should cache the artwork automatically (so long as the artwork is still accessible - remote artwork has a habit of disappearing).You can determine if your artwork is embedded, remote or local by viewing the metadata for an item, eg. texturecache.py jd movies avatar - if the artwork path starts with video@ then it is embedded and cannot be automatically cached. If it starts with http or https, then it is remote.
RE: [RELEASE] Texture Cache Maintenance utility - fbacher - 2018-08-14 One problem that I had was that I needed to update userdata to point to ~/.kodi/userdata. I found this when I ran texturecache.py s I'm not sure what all this impacts. I did the following after updating the path: Chorus is not displaying thumb for "Home from the Hill" texturecache.py jd movies gives: { "art": { "fanart": "image:///movies/XBMC/Movies/60s/Home from the Hill (1960)-fanart.jpg/", "poster": "image:///movies/XBMC/Movies/60s/Home from the Hill (1960)-poster.jpg/" }, "file": "/movies/XBMC/Movies/60s/Home from the Hill (1960).m4v", "label": "Home from the Hill", "movieid": 5373, "title": "Home from the Hill" }, ./texturecache.py c movies didnot fix the issue. However this worked: texturecache C movies RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-08-14 You shouldn't need to set userdata. Running C movies will re-cache all movie artwork (that isn't embedded), so maybe you had a problem with the originally cached artwork (a database inconsistency, for example).
RE: [RELEASE] Texture Cache Maintenance utility - MANswers - 2018-09-12 I use Media Companion for scraping my library, and then run update library in Kodi. Every once in a while I will remove a few movies from the filesystem in one go.. (movies that i have watched and do not like, or would not like to store them). Hence I was wondering what job i can execute in Texture cache every once in a while to remove these obsolete entries from the kodi library. I am not interested to execute texture cache on individual movie names.. I'd rather just have an automated job run every few days. So please guide me with the command.. is it C or c, or something else? RE: [RELEASE] Texture Cache Maintenance utility - MANswers - 2018-09-12 Also, in one of the previous post, the installation method had parameters that i dont see in the current version of texturecache.py, has anything changed... see below... I dont see these params Quote:userdata = C:\Users\XXXX\AppData\Roaming\Kodi\userdata But instead i see... web_user = self.getValue(config, webserver.username, ) web_pass = self.getValue(config, webserver.password, ) and for userdata path.. if sys.platform == win32 win32_path = %s%suserdata % (os.environ[appdata], appid) So were am i to change here? Or i am looking into the wrong lines? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-09-12 (2018-09-12, 22:18)MANswers Wrote: I use Media Companion for scraping my library, and then run update library in Kodi. texturecache.py P - it's documented in the first post of this thread.(2018-09-12, 23:04)MANswers Wrote: Also, in one of the previous post, the installation method had parameters that i dont see in the current version of texturecache.py, has anything changed... see below... I dont see these params The texturecache.cfg properties file is documented in the first post. Maybe try reading it? RE: [RELEASE] Texture Cache Maintenance utility - MANswers - 2018-09-13 (2018-09-12, 23:20)Milhouse Wrote:Thanks, i got it to work now.(2018-09-12, 22:18)MANswers Wrote: I use Media Companion for scraping my library, and then run update library in Kodi. How often do people run automated jobs here? I was planning to add this to windows scheduler, and let it kickstart at night... weekly? or daily? RE: [RELEASE] Texture Cache Maintenance utility - MANswers - 2018-09-13 I have another question, I am running Kodi on windows on my HTPC. I run the kodi application only when watching movie. So will TC work if Kodi is not running? I am working on creating a scheduler job in windows, and have added the task to run the texturecache.py job every night. I was wondering if kodi needs to be running in background for TC to work/prune obsolete data as i am using the "P" switch. I plan to also run c after P (let me know if its a useless idea). RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-09-13 (2018-09-13, 00:53)MANswers Wrote: How often do people run automated jobs here? I was planning to add this to windows scheduler, and let it kickstart at night... weekly? or daily? I would say that running P once a month should be more than for most people, but it really depends how much you use Kodi, and what you use it for - if much of your content is consumed online and/or via add-ons (YouTube etc.) then it's likely you will accumulate bloat (ie. thumbnails etc.) in the Texture Cache more quickly than someone who mainly uses a local library of content.Use c whenever you add new content.Use Xd and R whenever you experience weird problems with the cache.
RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-09-13 (2018-09-13, 01:20)MANswers Wrote: So will TC work if Kodi is not running? No, Kodi must be running as the script has to communicate with Kodi. (2018-09-13, 01:20)MANswers Wrote: I was wondering if kodi needs to be running in background for TC to work/prune obsolete data as i am using the "P" switch. You could start kodi.exe, run the script (P/c/etc), then shutdown kodi using the script: texturecache.py power exit . Obviously this could be a little annoying if someone is in the middle of a movie, but you'll need to work that out (eg. don't shutdown kodi if it was already running etc.)(2018-09-13, 01:20)MANswers Wrote: I plan to also run c after P (let me know if its a useless idea).Running P every night might be a little excessive, but c at any time should be fine.
RE: [RELEASE] Texture Cache Maintenance utility - MANswers - 2018-09-13 (2018-09-13, 03:43)Milhouse Wrote:Fantastic.. Thank you so much!!(2018-09-13, 01:20)MANswers Wrote: So will TC work if Kodi is not running? RE: [RELEASE] Texture Cache Maintenance utility - beeswax - 2018-09-17 I'm not sure how I'm only just finding out about this script now but it looks very useful and I'm trying to get it working. Have I just been unlucky with my timing and there's a tvdb problem?
This is my Kodi log when that's happening (debug log enabled):
RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-09-17 I'm not aware of any thetvdb.org problems, but it certainly appears that your Kodi client is having problems communicating with thetvdb.org - check your network, reboot your Kodi client, then ask in thetvdb.org support thread. There's not much the script can do as this is a Kodi problem. |