[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 - skj88 - 2013-10-06 Great script!! I just added a few hundred images to the mymusic32.artistinfo table in the strFanart and strImage fields. The images show up when when I browse to the artist and select to view fanart or thumbs but the images do not show when I just scroll through the list of artists (I am giving XBMC time to download the images from the URLs I added). WIll running this with argument 'C' cause XBMC to download and assign these new images as thumbnails and fanart? This would go much faster than going into artist information each one and selecting 'Get Thumb' and 'Get Fanart' and selecting the image from the list. If not with this script do you know of some other way to achieve this with minimal manual effort? Thanks RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-06 (2013-10-06, 01:22)skj88 Wrote: WIll running this with argument 'C' cause XBMC to download and assign these new images as thumbnails and fanart? It should do, as long as you see the correct thumbnail and fanart urls when you run: Code: ./texturecache.py jd artists then Code: ./texturecache.py C artists will forcibly re-cache just your artist thumbs. (2013-10-06, 01:22)skj88 Wrote: do you know of some other way to achieve this with minimal manual effort? Nope. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-06 (2013-10-06, 01:22)skj88 Wrote: I just added a few hundred images to the mymusic32.artistinfo table in the strFanart and strImage fields. To be honest, I'm not sure if that's the right thing to do - have you looked at the "art" table and how it relates to artists, albums, songs etc via the media_id and media_type columns? I wouldn't be at all surprised if your SQL changes are not showing up when you run "jd artists". RE: [RELEASE] Texture Cache Maintenance utility - CaptainKen - 2013-10-06 (2013-10-03, 23:46)MilhouseVH Wrote:(2013-10-03, 14:25)CaptainKen Wrote: While not all my sets contain set artwork, MSAA should drill down and use the first movie fanart and poster, but they do not. Update - Adding set fanart and poster to LOR now shows the set artwork. (Odd that only some movies without set artwork would not drill down to display other artwork for the set.) - Ocean's poster was a png file, so changed it to jpg and it now shows properly - Ice Age was a jpeg file, so changed to jpg and now shows properly I've started to compile a MSAA troubleshooting check list! If you have anything to add, have at it. If the fanart for a set isn't showing up: - Press the "I" Info button and Backspace to force a refresh - Make sure the fanart and poster are jpg, not png, jpeg or any other format - Check the file permissions - Make sure the Read-only or Hidden file attributes are not checked - Make sure within the file attribute window that there isn't a Security Block: "This file came from another computer and might be blocked to help protect this computer." - Run "texturecache.py C sets" to recache - Run "texturecache.py jd sets > LogFilePathAndNameHere" to see what artwork is being used for the set - Even though MSAA is supposed to drill down and use fanart and poster from a movie in the set, if none exist for the set itself, sometimes you must have actual artwork for the actual set. THANK YOU FOR ALL YOUR HELP AND PATIENCE! I'd like to make a contribution to your cause, please point me to where I can do this. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-06 (2013-10-06, 04:55)CaptainKen Wrote: - Ocean's poster was a png file, so changed it to jpg and it now shows properly I thought MSAA supported png? Maybe not, mine are all jpg. It's a shame such a useful addon is no longer supported. (2013-10-06, 04:55)CaptainKen Wrote: I'd like to make a contribution to your cause, please point me to where I can do this. Thanks but kind words are generally sufficient! I wrote this to scratch my own itch, if it's useful to others (or I can help resolve related issues) that's just a bonus! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-18 Version 1.0.2 * Add: New options, set and testset, to allow limited modification of movie, tvshow, episode, musicvideo, artist, album and song library items. Use testset to verify the request is valid before performing any update. Example: Code: ./texturecache.py set movie 312 to set clearlogo, clearart, playcount and tag fields for the movie with the movieid 312. Most basic fields can be specified (eg. plot, trailer, playcount, art etc. - see JSON API v6 for details of which fields can be specified on the Set*Details calls). However modification of more complex fields - such as cast, streamdetails etc. - is not supported by JSON. Also, the file field cannot be modified. In addition, for the sake of efficiency, batches of data can also be read from stdin. In the following example, the two movies and one tv show are to be updated. The fields being updated are specified by the "items" list within each movie or tv show (in each case, setting new clearart and clearlogo artwork urls). The file update.dat contains the following information: Code: [ Code: cat update.dat | ./texturecache.py set * Added of tools/mktools.py which can read in the output from "texturecache.py jd movies" or "texturecache.py jd tvshows" and convert remote artwork to local. It will retrieve the original remote artwork from the web site and write it into your media directory. Output from mklocal.py can be fed into "texturecache,py set" to re-point your media library so that it now uses the local artwork. Run mklocal.py in different ways to download remote artwork, or just assign existing local artwork to your media library. See --help for more details. RE: [RELEASE] Texture Cache Maintenance utility - namtih - 2013-10-19 Is it possible to preload the previews for the movie addons content? Let's say to preload the preview images of the 10 first list entries of all subscribed YouTube channels. Would be a great help for small devices like the Rpi to improve the navigation, when I could preload those images at night. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-19 (2013-10-19, 13:44)namtih Wrote: Is it possible to preload the previews for the movie addons content? Let's say to preload the preview images of the 10 first list entries of all subscribed YouTube channels. Not unless the preview image urls are in the media library (and they're not likely to be). To be honest, this sounds more like a request for the addon author - add a function that would pre-load preview images on a scheduled basis. RE: [RELEASE] Texture Cache Maintenance utility - akya - 2013-10-19 I am getting this while running [c] option Code: E:\Backup\backup\Misc>texturecache.py c I can successfully Prune texture cache.. (p, P) Some help please? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-19 (2013-10-19, 15:05)akya Wrote: Some help please? It's telling you what the problem is - your XBMC web server has a password/username. You need to add the following properties to your texturecache.cfg file: Code: webserver.username = your-username Or alternatively remove the username/password from your webserver settings in the XBMC GUI. RE: [RELEASE] Texture Cache Maintenance utility - akya - 2013-10-19 (2013-10-19, 15:14)MilhouseVH Wrote:Thank you !(2013-10-19, 15:05)akya Wrote: Some help please? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-21 A brief note on the mklocal.py tool, which is basically a quick method to populate your media source with original quality artwork (unlike Export Library, which uses potentially image quality compromised artwork from the texture cache). Example usage: Code: ./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster clearlogo clearart --output fixup.dat where /freenas/media is the OS mount point for your media, such that XBMC media source nfs://192.168.0.3/mnt/share/media is mapped to /freenas/media and vice versa. The above example would process each of your movies for the specified artwork types - fanart, poster, clearlogo and clearart - and, if the artwork file doesn't already exist, and the library url is remote (ie. http://), the artwork item will be downloaded from the source web site and written to the --local folder alongside the corresponding movie file. Artwork will be named by appending the artwork type to the movie file name, eg. "/freenas/media/Video/MoviesHD/Classics/12 Angry Men (1957)[BDRip]-poster.jpg" will be mapped to "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Classics/12 Angry Men (1957)[BDRip]-poster.jpg". Once you have written the artwork to your media folders, update your media library to use the new local urls with the following call: Code: cat fixup.dat | ./texturecache.py set Also works for tvshows. Add "--season" to also download season artwork, although note there are no JSON methods to modify season artwork so these cannot be set automatically (fixed in recent Gotham nightly, requires JSON API v6.12.0+). Add "--episode" to also download episode thumbs, which can be set automatically. You can of course test this by not writing to your media folder: Code: ./texturecache.py jd movies | ./mklocal.py --local /freenas/media/TestFolder --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster clearlogo clearart --output fixup.dat RE: [RELEASE] Texture Cache Maintenance utility - bradvido88 - 2013-10-25 Just wanted to say thanks for filling this huge void in native XBMC functionality. I've updated my old Thumb-cleaning tool to point to this page RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-10-25 Version 1.0.3 (25/10/2013) * Fix: issue #9, error during prune when dds file already deleted RE: [RELEASE] Texture Cache Maintenance utility - jmarshall - 2013-10-26 @MilhouseVH: PR for adding texture cache accessibility via JSON-RPC is up: https://github.com/xbmc/xbmc/pull/3499 Would appreciate your comments/testing. It might not have everything you want yet, but you should be able to get most stuff from the database at least. Cheers, Jonathan |