[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 - willynuisance - 2015-01-22 yes I restart the HTPC many times RE: [RELEASE] Texture Cache Maintenance utility - xrichard - 2015-01-23 (2015-01-22, 02:07)Milhouse Wrote: The problem is your AFTV is running an old version of XBMC, that doesn't support the Textures JSON API. Without the JSON API, which provides remote access to the texture cache, the script is forced to directly access the userdata folder of the AFTV. Since you're running the script on Windows, that's never going to work, as Windows can't mount the AFTV SD card. Thank you! I installed Helix on one of the AFTVs and all is well. I'll play with the other one to see if I can figure out how to run the script directly on the AFTV. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-23 (2015-01-22, 22:52)willynuisance Wrote: yes I restart the HTPC many times In that case, the only other reason would be that localhost isn't running Kodi. Try setting xbmc.host with the IP address of the PC running Kodi. RE: [RELEASE] Texture Cache Maintenance utility - xexe - 2015-01-23 Sorry if this is obvious. How can you do a "qa" and "qax" of all time (is it just a matter of setting a huge qaperiod = 999999?) Also how can I exclude "mpaa" from being a trigger for a "qax" based refresh (as there are loads of them and rarely does a qax fix them as upstream doesnt get updated). RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-23 (2015-01-23, 19:42)xexe Wrote: (is it just a matter of setting a huge qaperiod = 999999?) Yes. (2015-01-23, 19:42)xexe Wrote: Also how can I exclude "mpaa" from being a trigger for a "qax" based refresh The default fields for "qa.blank.movies" are "plot, mpaa", so use "@qa.blank.movies=plot" and only movies with a blank (empty) plot will be flagged up by qa/qax. Or "@qa.blank.movies=plot, ?mpaa" would result in qax treating mpaa as a warning rather than a fail (a fail causes a refresh, a warning just outputs a message). RE: [RELEASE] Texture Cache Maintenance utility - Polygon Man - 2015-01-23 First I just want to say thanks Milhouse for this awesome tool. I'm running a Windows 8.1 server with a MySQL database, and then I have two Raspberry Pi's with OpenELEC. Your tool is working great when I run it manually, but I would like to run it automatically each day. How would I archive this? I think I would make a cmd.exe or powershell script, with PuTTY command-line arguments, and make it a Scheduled Task, but I'm not sure how to put everything together. Basically, I need to run the first two commands on my server, and then I need to ssh into each Raspberry Pi and run the third and fourth command. ./texturecache.py qa # On server. Perform QA check on media library recently added items, identifying missing properties (eg. plot, mpaa certificate, artwork etc.). Default QA period is previous 30 days ./texturecache.py vscan # On server. Initiate audio/video library scan, either entire library or a specific path (see sources). ./texturecache.py c movies # On Raspberry Pi's. Automatically cache missing movie artwork. ./texturecache.py c tvshows # On Raspberry Pi's. Automatically cache missing tvshows artwork. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-24 You should be able to schedule a cmd script on the Windows PC using "at". You don't need PuTTY for this, just configure the script to run on the Windows PC, connecting to the remote Raspberry Pi host (eg. @xbmc.host=192.168.0.8). Or add named sections to your texturecache.cfg file and reference each section when running the script, eg: Code: # values common to all sections go in here... then: Code: texturecache.py @section=pi1 qa You can run all of the above options remotely, on your Windows server. RE: [RELEASE] Texture Cache Maintenance utility - xexe - 2015-01-24 (2015-01-23, 20:02)Milhouse Wrote:(2015-01-23, 19:42)xexe Wrote: (is it just a matter of setting a huge qaperiod = 999999?) That is brilliant thank you, works perfectly. RE: [RELEASE] Texture Cache Maintenance utility - xexe - 2015-01-25 I am trying to debug what is going wrong here or if it just an understanding fail on by behalf. I am running headless within docker so if something is indeed goign wrong thats likely the source. But just to confirm nc, c then nc should show a drop in required cache and not what I am seeing as follows: Quote:./texturecache.py nc movies RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-25 Impossible to say without a logfile. Unusual, though. Check for errors on the Kodi client (in kodi.log), maybe it's got some sort of problem writing to the local SQLite db or filesystem. RE: [RELEASE] Texture Cache Maintenance utility - Gink - 2015-01-26 Very useful script, thanks! Unfortunately I cannot seem to figure out the problem I am having. I moved files about a while back. Updated library, cleaned library, cleaned up all my sources, media sources, passwords, etc in xbmc, but was seeing DB errors in the textures db, so trashed it, the thumbnails folder, and tried to rebuild. Ended up missing a lot of TV Banners. Discovered this script and thought my problem would be solved, but have tried running it with various options and I just get errors trying to recache most of the banners, namely that it tries to download them from a non-existent path. Code: The following items could not be downloaded: It is pulling episode art from the correct path as evidence by using the s option Code: 003322|d/d3629323.jpg|0225|0400|0001|2015-01-25 22:47:17|2015-01-25 14:47:15|smb://192.168.79.119/threeterra/TV/Modern Family/Season 06/Modern Family S06E11 HD TV.tbn So I have no idea where it is getting the old obsolete path or why it insists on using it to try and cache the banners and fan art. Is there a certain option I can run the script with to get rid of that path and get it to pull it from the folder where the TV show actually is located? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-26 The non-existent path is in your media library. Run: Code: texturecache.py jd tvshows "modern family" You need to fix your media library, and replace the non-existent paths with the correct path. You can do this manually in the GUI with "Choose art..." from the context menu, or do it automatically using mklocal.py (see previous posts for details). RE: [RELEASE] Texture Cache Maintenance utility - Gink - 2015-01-26 (2015-01-26, 04:08)Milhouse Wrote: The non-existent path is in your media library. Thanks, I finally found it with the jd, and managed to manually set the path, but that would take a long time to do one by one. I thought maybe I could just remove and rescan with qa, but couldn't seem to get qa qa.art.tvshows.tvshow to not throw errors. I'll check out mklocal.py and see if I can get that to fix all the paths. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-01-26 Yes, qax doesn't check if the artwork file actually exists, to fix such problems would require removing and re-scanning the entire tvshow which is not the best thing to do. mklocal.py should fix your media library without any removal or re-scanning. RE: [RELEASE] Texture Cache Maintenance utility - xexe - 2015-01-26 (2015-01-25, 22:07)Milhouse Wrote: Impossible to say without a logfile. Unusual, though. Check for errors on the Kodi client (in kodi.log), maybe it's got some sort of problem writing to the local SQLite db or filesystem. Nothing obvious in the logs so i setup a non docker non headless instance and it worked first time so it looks like it is either headless or docker that is at fault here. Cheers |