[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 - TRaSH - 2013-04-07 i was fooling arround with this utility, and tried the command qa and qax when doing qa movies i got 2 movies where there where missing mpaa rating. so i tried a qax movies. after that 2 more movies where added to the database. it created from 1 the movies that uses blu-ray folder structure 16:13:37 T:6088 ERROR: InputStream: Error opening, smb://192.168.2.200/Movies/The Wiz (1978)/BDMV/MovieObject.bdmv 16:13:37 T:4876 ERROR: InputStream: Error opening, smb://192.168.2.200/Movies/The Wiz (1978)/BDMV/BACKUP/index.bdmv as 2 seperate movies. RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-07 Was "The Wiz" one of the two movies that had missing mpaa? Could you add "extrajson.movies = file" to your properties file, then run Code: ./texturecache.py Jd movies "The Wiz" I'm guessing that the JSON rescan directory method may need to start at the parent level for BDMVs (and maybe VOBs too). RE: [RELEASE] Texture Cache maintenance utility - TRaSH - 2013-04-07 yes the Wizz was 1 of the 2 with the missing mpaa the other 1 was Hackers Code: PS C:\Users\TRaSH> python .\texturecache.py Jd movies "The Wiz" Code: PS C:\Users\TRaSH> python .\texturecache.py Jd movies "Life of PI" Code: PS C:\Users\TRaSH> python .\texturecache.py Jd movies "Hackers" RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-07 (2013-04-07, 18:02)TRaSH Wrote: yes the Wizz was 1 of the 2 with the missing mpaa Could you try the new version I just uploaded (v.0.4.3 - run "texturecache.py update"), I've added a check for BDMV and VIDEO_TS so that the parent folder will be scanned instead. Let me know if that helps. Other additions in v0.4.3: qa re-factor with addition of extensible rules, workaround for root directory rescan bug. See changelog for full details. RE: [RELEASE] Texture Cache maintenance utility - TRaSH - 2013-04-07 Code: PS C:\Users\TRaSH> python .\texturecache.py qa movies RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-07 You'll need to manually re-scan (Update library in GUI) as its now removed Hackers from the library. Do you get a timeout if you try qax a second time? ie. is this timeout consistently reproducible? Maybe rescanning a BDMV takes a substantially longer time than a non-BDMV (don't have any here to confirm). If you want to increase the timeout, you can edit line 677 and change timeout=2 to timeout=n where n is some value larger than 2, ie. 10, and see if that works. Maybe I need to add a more conservative timeout value. If you increase the timeout to 30 seconds, enable the logfile (add "logfile=c:\tc.log" to properties) and perform a qax of your BDMV content, then upload the logfile to pastebin I might get a better idea of how long a BDMV rescan takes. Many thanks. RE: [RELEASE] Texture Cache maintenance utility - TRaSH - 2013-04-07 weird somehow it times out now with the same error. here's the error log did a second test but i removed the folder where i had the movie hackers in it, did a update/clean. error log Code: PS C:\Users\TRaSH> python .\texturecache.py qa movies RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-07 Many thanks for the log. Can you describe what is happening in the GUI when the rescan has started - do you see it finding your BDMV movie? The utility is timing out waiting for an update notification to be received from XBMC, which for some reason is never arriving (or at least, not completely). Perhaps enabling debugging in XBMC and uploading the debug log might shed more light on what is going on in XBMC... If you don't mind a bit more fiddling, could you add the two self.logger.log lines at line 712 so that it looks as follows: Code: ... RE: [RELEASE] Texture Cache maintenance utility - TRaSH - 2013-04-07 hmm getting another error Code: PS C:\Users\TRaSH> python .\texturecache.py qa movies RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-08 Gah, I hate unicode... Can you try updating to v0.4.4, I've added some extra logging and hopefully unicode friendly logging... RE: [RELEASE] Texture Cache maintenance utility - dEADkIRK - 2013-04-08 Thanks for your work! Can you please add dds-file support to the script? All dds are now identified as orphaned! http://wiki.xbmc.org/index.php?title=Thumbnails/Cache#DDS_artwork RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-09 Ah yes, of course. I don't have any DDS files on my Pi anymore (disabled by default long ago). Could you do me a quick favour and produce a small database extract of some of your jpg/dds files, for example "./texturecache.py s "somemoviename"" and paste the results here so I know what filenames are being used (both original and then dds equivalent). I'm assuming the DDS files use the same hash as the cached image, but with lowercase ".dds" extension instead of ",jpg". The database will confirm this. Thanks. I can get this up in the next few hours, but was holding back on the next release until I had some feedback on this timeout issue although maybe I'll just move on and see if it crops up again in future. Edit: Ignore the request, I've managed to create some dds files on my system so can now reproduce... RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-09 v0.4.5 updated * Added DDS suppoort for r, R, p and P options. * Added logfile.verbose to control amount of information written to logfile. Default no. Significant amounts of data will be output when enabled. * Added singlethread.urls property, to force download of content on a single thread. Use this for sites that appear to disallow multiple requests from the same address - fanart.tv seems to do this for me (clearart/clearlogos etc.). eg. singlethread.urls = assets.fanart.tv, some.othersite.com would result in all content requests for files matching any of the above patterns to be performed sequentially on a single thread. This thread will be in addition to any other threads. * Added ascan [path], vscan [path], aclean, vclean, directory path and sources [media] options. Update, clean and interrogate a remote media library from the command line. RE: [RELEASE] Texture Cache maintenance utility - charrua - 2013-04-09 Any chances of adding CD art images to music albums cache preload? AFAIK these images (cdart.png) are downloaded by CDArt Manager AddOn straight to the folder where the audio files of the music album are, and then they are cached from there by the skins that support that feature, but the images links are never loaded into the music DB. RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-09 (2013-04-09, 03:21)charrua Wrote: Any chances of adding CD art images to music albums cache preload? Are these artwork types supported by JSON, as the JSON API only describes fanart and thumbnail as valid artwork for Albums. What happens if you add the cdart type (whatever type that is) to "extrajson.albums" and run "Jd albums <albumname>" where albumname is an album with cdart - do you get a valid response, or an error (invalid parameter)? |