[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 - sniferx1 - 2018-03-21 @Milhouse I continue my mission to get a perfect TextureCache and after several hours the script finished scanning the full lib in one device and got below error The following items could not be downloaded: [clearart ] [Enemies Closer ] nfs://192.168.1.117/volume1/Movie_Belly/Movies 1970 to 2012/Enemies Closer/clearart.png [landscape ] [What Happened to Monday ] https://assets.fanart.tv/fanart/movies/406990/moviethumb/seven-sisters-59d7c7554a3c7.jpg Can you please tell me how to fix these errors? Issue with the first was "0" byte file (clearart.png) and I removed it from source and rerun the scanner just for that Movie (./texturecache.py C movies "Enemies Closer") but I am keep getting the same error over and over. Then I tried below but nothing is showing. I am happy to remove this entry (nfs://192.168.1.117/volume1/Movie_Belly/Movies 1970 to 2012/Enemies Closer/clearart.png) and please help me with directions. ./texturecache.py Xd movies RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-03-21 (2018-03-21, 13:38)sniferx1 Wrote: I continue my mission to get a perfect TextureCache You'll almost certainly never achieve your mission while using remote artwork, IMHO - there are too many factors outside of your control. (2018-03-21, 13:38)sniferx1 Wrote: Issue with the first was "0" byte file (clearart.png) and I removed it from source and rerun the scanner just for that Movie (./texturecache.py C movies "Enemies Closer") but I am keep getting the same error over and over.If you've removed the artwork, but the media library still references the artwork, then the script will continue to try and cache it (and fail). You need to replace the artwork with a suitable non-zero byte file, or remove the clearart artwork from the movie so that it will no longer be cached. To remove the artwork determine the movieid for the movie with ./texturecache.py jd movies "Enemies Closer" then the following will remove the clearart:Code: ./texturecache.py set movie #### art.clearart "" (2018-03-21, 13:38)sniferx1 Wrote: [landscape ] [What Happened to Monday ] https://assets.fanart.tv/fanart/movies/4...54a3c7.jpg This is the problem with remote artwork - the web sites don't always respond reliably, or predictably. It could be too many requests and you are being throttled (temporary issue, try again later), or the artwork has moved (terminal issue, you'll need to scrape alternative artwork), or just the day of the week. If you try again for this movie then Kodi may be able to cache it a second time. RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-22 Thanks @Milhouse I am now updating the lib with IMDB data and getting below error for TVshows. For movies all available fields worked like a charm but not getting any luck for tvshows. I think this is with supported fields as when I but votes only in the .cfg it worked. (I already purchased the API key) Cfg: imdb.fields.movies = top250, title, rating, votes, year, runtime, genre, plot, plotoutline imdb.fields.tvshows = votes, title, rating, year, runtime, genre, plot Command: ./texturecache.py imdb tvshows | ./texturecache.py set Error:T raceback (most recent call last): File "./texturecache.py", line 8618, in <module> main(sys.argv[1:]) File "./texturecache.py", line 8527, in main setDetails_batch(dryRun=dryRun) File "./texturecache.py", line 6224, in setDetails_batch jdata = json.loads("".join(data)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded")ValueError: No JSON object could be decoded Can you please let me know what are the supported fields for tvshows? EDIT: Commenting the "imdb.fields.tvshows" in the cfg and passing the values via "@imdb.fields.tvshows" worked. I think small bug with the script to get the parameters via the .cfg file. Working Command:./texturecache.py imdb tvshows | ./texturecache.py set @imdb.fields.tvshows=votes,title,rating,year,runtime,genre,plot,plotoutline RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-03-22 (2018-03-22, 00:42)sniferx1 Wrote: Working Command:./texturecache.py imdb tvshows | ./texturecache.py set @imdb.fields.movies=votes,title,rating,year,runtime,genre,plot,plotoutlineThis is "working" because you're passing @imdb.fields.movies to the wrong command in the pipeline, where it is ignored. Since it is being ignored, the imdb tvshows command in the pipeline is using whatever imdb.fields.tvshows is configured in texturecache.cfg (and if there is nothing defined in texturecache.cfg then it will use the default rating, votes ).Your command should be: Code: ./texturecache.py imdb tvshows @imdb.fields.tvshows=votes,title,rating,runtime,plot | ./texturecache.py set (2018-03-22, 00:42)sniferx1 Wrote: Can you please let me know what are the supported fields for tvshows?
should work for tvshows. The error you are getting is because year and genre are not supported when querying episodes (they are supported by movies, and supported by tvshows but imdb tvshows is really updating individual episodes where these fields are not supported), so JSON returns an error, which you are then piping through texturecache.py set , and the error is not valid JSON so set chokes.When experiencing this type of error it helps if you break the pipeline down to see the error that is being produced. RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-22 (2018-03-22, 01:50)Milhouse Wrote:Thanks @Milhouse below worked like charm:(2018-03-22, 00:42)sniferx1 Wrote: Working Command:./texturecache.py imdb tvshows | ./texturecache.py set @imdb.fields.movies=votes,title,rating,year,runtime,genre,plot,plotoutlineThis is "working" because you're passing ./texturecache.py imdb tvshows @imdb.fields.tvshows=votes,rating,title,runtime,plot | ./texturecache.py set RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-22 @Milhouse Want to pick your brain on something. Given I got 4x Kodi devices and all connecting to same media lib via SQL server. Can I scan all via Texture Cache tool to one of the box and then Copy the "Thumbnails" folder and "Textures13.db" to other devices. This will save huge amount of time and want to check withy you. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-03-22 (2018-03-22, 03:13)sniferx1 Wrote: @Milhouse Yes, in theory, particularly if the clients are all the same spec (ie. all Raspberry Pi's, or all PCs). The problem is that the caching process creates thumbnails optimised for the client device - a high powered PC may create higher resolution images than would be ideal on a lower powered ARM device; a Raspberry Pi can't hardware decode progressive JPGs while a PC can in which case caching a progressive thumbnail on a PC and copying the Thumbnails folder (and database!) to a RPi will always result in the RPi software decoding the cached artwork. So yes, it's possible, but there are caveats. You may find guides that recommend using path substitution to "share" the Thumbnails folder but this usually fails to share the Textures13.db database, which can lead to odd and hard to reproduce caching/display issues. Sharing the database is not IMHO a good idea, as SQLite databases are not designed for simultaneous access from multiple network clients (that's what a database server is for, and unfortunately Textures13.db cannot be hosted on a MySQL server - there's really no point supporting MySQL as texture caching is an entirely client specific function). RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-22 Thanks. I will give this a go. I got 3x Vero4K devices and 1x Rpi3. Hopefully this will work. RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-22 (2018-03-22, 04:39)sniferx1 Wrote: Thanks. I will give this a go. I got 3x Vero4K devices and 1x Rpi3. Hopefully this will work.I have copied them across to one Vero4K device to other Vero4K unfortunately post the reboot it didn't work. Anyway it's OK as I got a perfectly working one Vero4K Box now and just need to spend some time and get others running. Thanks heap for your prompt support @Milhouse as I have learned so many new things for last few days. Those who like to know the copy command I used to copy them across it's as below.... Copy between hosts via ZIP:tar cf - Thumbnails | ssh [email protected] tar xfC - ~/.kodi/userdatatar cf - Textures13.db | ssh [email protected] tar xfC - ~/.kodi/userdata/Database RE: [RELEASE] Texture Cache Maintenance utility - nonJon - 2018-03-23 Awesome stuff Milhouse. Wish I had found this sooner. Kodi should come with a PSA pointing all comers to this thread. RE: [RELEASE] Texture Cache Maintenance utility - Patchou - 2018-03-24 Excellent script, exactly what I needed. All of this should really be part of the main product, thanks for your hard work. RE: [RELEASE] Texture Cache Maintenance utility - DG77 - 2018-03-29 Hi, thanks for this useful utility! I'm curious, using the option "C", will this fetch,rebuild cache/images with the current settings for <imageres> and <fanartres> found in advancedsettings.xml in my Kodi's userdata folder? I'm looking to "refresh" my thumbnails etc. with my current settings for fanart and image resolution. This is how my advancedsettings.xml looks like: <advancedsettings> <videolibrary> <imageres>1080</imageres> <fanartres>1080</fanartres> <imagescalingalgorithm>lanczos</imagescalingalgorithm> <dateadded>0</dateadded> <recentlyaddeditems>35</recentlyaddeditems> <cleanonupdate>true</cleanonupdate> </videolibrary> </advancedsettings> RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-03-29 (2018-03-29, 00:10)DG77 Wrote: I'm curious, using the option "C", will this fetch,rebuild cache/images with the current settings for <imageres> and <fanartres> found in advancedsettings.xml in my Kodi's userdata folder?Yes RE: [RELEASE] Texture Cache Maintenance utility - sniferx1 - 2018-03-30 @Milhouse I need your expertise again as all of my Movie "Thumbs" via KODI Web Interface and Kodi APP displaying KODI generated Thumbs and not the Nice Poster version of the Thumbs. I tried to re-cache them via "C" but same Kodi generated Thum is displaying and you can see this via below image I have uploaded. https://drive.google.com/file/d/17YyNnXmNdxwtQr17HGQcSo69lpLWA-bk/view?usp=sharing However if I refresh the Movie again from Kodi UI, then the proper version of the Thumb is displaying via WEB-UI and APP. How can I your your tool and refech the Thumbs? Also anyway to use your tool and perform full lib refresh in this case? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2018-03-30 (2018-03-30, 01:16)sniferx1 Wrote: How can I your your tool and refech the Thumbs? Also anyway to use your tool and perform full lib refresh in this case? The script is only caching what is in your media library. Run texturecache.py jd movies Throwaways and paste the result.
|