[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 - bob77 - 2019-02-16 (2019-02-16, 21:31)Milhouse Wrote:Thats what I thought initially however the area to display the path is much longer and there is no reason to display an ellipsis.(2019-02-16, 20:33)bob77 Wrote: there is a "\...\" in the middle of the path of every movie which definitely should not be there. the actual path from win explorer is E:\-=Movies=-\-=Sci-Fi=-\Jurassic.World.2015.1080p.BluRay.10bit.x265.DTS-Dr3adLoX RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-02-16 (2019-02-16, 21:51)bob77 Wrote: Thats what I thought initially however the area to display the path is much longer and there is no reason to display an ellipsis. The area available to display the path may appear sufficient (depending on your GUI resolution) but the width of the label at 1400 pixels being used to output the path is clearly not making full use of the available area. By all means file a bug with the Estuary skin. RE: [RELEASE] Texture Cache Maintenance utility - Yuren - 2019-02-17 Hi, I have noticed that Kodi doesn't have downloaded all possible actor pictures, so I use your script to complete this task. The script imported 1043 new cast thumbs and skipped 5249 ones. Is it possible to force the download of the skipped one? I used this command texturecache.py @logfile=tc2.log c movies This is one log line Code: 2019-02-17 09:25:31.336469:MainThread: ITEM SKIPPED: {1, "movies", "cast.thumb", "Steven Cree", "1921 - Il mistero di Rookford ", None, "https://m.media-amazon.com/images/M/MV5BMTc4NjE4MTA1MV5BMl5BanBnXkFtZTgwOTExNDc1MTE@._V1_SX1024_SY1024_.jpg", 0, None, 139, False} Logs RE: [RELEASE] Texture Cache Maintenance utility - bob77 - 2019-02-17 could you please explain what each one of these does? cache.castthumb = yes cache.extrafanart = yes cache.extrathumbs = yes cache.hideallitems = yes cache.artwork = yes cache.videoextras = yes I had a situation where actor thumb was ok in movie information page but all the actor thumbs were missing on the actors page (the one that lists all actors in the library). which one of the above commands causes them to go missing? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-02-17 (2019-02-17, 11:40)Yuren Wrote: Hi, See https://forum.kodi.tv/showthread.php?tid=158373&pid=1661157#pid1661157 for an explanation of the different states. If you have the actor "Steven Cree" in 6 movies then you will download the thumbnail once, and skip the other 5 instances. If the thumbnail is already downloaded and cached, then all 6 instances will be skipped. So no, there's no way to download the skipped instances, as there would be no point (you'd be downloading artwork that is already cached which would just be a waste of time and bandwidth). RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-02-17 (2019-02-17, 14:58)bob77 Wrote: could you please explain what each one of these does? cache.castthumb = yes : Cache cast artwork yes/no, default nocache.extrafanart = yes : Cache extrafanart yes/no, default nocache.extrathumbs = yes : Cache extrathumbs yes/no, default nocache.hideallitems = yes : If enabled, don't cache Season All artwork, default is nocache.videoextras = yes : Cache videoextra yes/no, default no. I provided the link a few posts above.cache.artwork is not a yes/no property, this is the list of artwork types to be cached, ie. cache.artwork=poster,fanart would cache only posters and fanart. Default is to cache all artwork.(2019-02-17, 14:58)bob77 Wrote: I had a situation where actor thumb was ok in movie information page but all the actor thumbs were missing on the actors page (the one that lists all actors in the library). which one of the above commands causes them to go missing? cache.artwork=yes would only cache yes artwork which obviously isn't a valid artwork type so you'd basically stop caching all artwork, this might have stopped the script caching cast thumbnails.
RE: [RELEASE] Texture Cache Maintenance utility - the_bo - 2019-02-21 Hi @Milhouse Does the cache.extrafanart support caching of the new method of storing extrafanarts outside the extrafanarts folder instead storing inside movie folder. This allows integration into Kodi library. There named as fanart1, fanart2 etc. Example structure Movie folder -------movie.mp4 -------clearlogo.png -------fanart.jpg -------fanart1.jpg -------fanart2.jpg More info here https://kodi.wiki/view/Movie_artwork#Multiple_fanart To support this I'm in the process of moving all my extrafanarts to the movie folder. Not related to your script but do you know of a quick batch method to do this (move all images from extrafanart folder to previous folder). I guess need to learn of a for loop method bat file or something. I'm not that experienced in script files. Thanks for your time RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-02-23 (2019-02-21, 12:56)the_bo Wrote: Does the cache.extrafanart support caching of the new method of storing extrafanarts outside the extrafanarts folder instead storing inside movie folder. This allows integration into Kodi library. No, it currently only supports extra artwork in the /extrafanart subdirectory.(2019-02-21, 12:56)the_bo Wrote: Not related to your script but do you know of a quick batch method to do this (move all images from extrafanart folder to previous folder). I guess need to learn of a for loop method bat file or something. I'm not that experienced in script files. I'm afraid I do not - it should be possible with a small script. RE: [RELEASE] Texture Cache Maintenance utility - hugepants - 2019-03-01 I'm about to upgrade my Krypton MySQL setup to Leia. I use a LibreELEC VM for library updates and the clients run LibreELEC or OSMC. For upgrades I usually export the library to separate files in Kodi before upgrading Kodi, and then I do a library update with a fresh database after updating Kodi. However after reading here, it appears that this is not ideal, because the artwork gets re-compressed and degraded each time the library is exported. I have performed 3 upgrades this way and I have noticed a reduction in artwork quality of existing entries in the library. How can I leverage this tool to export my chosen artwork at full quality, bearing in mind that I have already selected non-default artwork for many movies through the Kodi UI (the basic artwork selector in the Aeon Nox Silvo skin)? Does the mklocal.py script locally save the artwork that I have chosen, or does it save the default artwork that is scraped after a library scan? Thanks in advance RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-03-01 (2019-03-01, 18:48)hugepants Wrote: Does the mklocal.py script locally save the artwork that I have chosen, or does it save the default artwork that is scraped after a library scan? It locally saves the artwork you have chosen, ie. the artwork which is referenced by your media library. mklocal.py will save the full quality artwork so long as it's still available - if the original artwork is remote and no longer available then mklocal.py won't be able to download the full quality artwork and you can optionally have it unset the missing artwork (so that a tool such as Artwork Downloader can subsequently associate new artwork which you can then save locally in full quality), or you can resort to manually exporting the cached version of the artwork that cannot be downloaded. RE: [RELEASE] Texture Cache Maintenance utility - desepticon - 2019-03-02 I'm having an issue with the mklocal.py script. It worked on my tvshows, but fails on my movies. user@computer ~/s/m/texturecache>./texturecache.py jd movies | ./tools/mklocal.py --local / --prefix / --artwork fanart poster --output ./fixup.dat Traceback (most recent call last): File "./tools/mklocal.py", line 872, in <module> main(init()) File "./tools/mklocal.py", line 855, in main workitem = processItem(args, mediatype, media, download_items) File "./tools/mklocal.py", line 417, in processItem newname = processArtwork(args, mediatype, media, mediatitle, artitem["type"], mediafile, oldname, artpath_m, artpath_s, is_excess=False) File "./tools/mklocal.py", line 498, in processArtwork fname = pathToXBMC(getImage(args, mediatype, media, title, atype, filename, currentname, target)) File "./tools/mklocal.py", line 543, in getImage shutil.copyfile(newsource, target) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 97, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: '/Volumes/w-fanart.jpg' There is no file at /Volumes/w-fanart.jpg. I set all the permissions to 777 on my media drives just to make sure it wasn't a permissions issue. Running MacOS 10.13.6 edit: Ok. I was able to get passed the error by running as su. And I did end up with those two files at /Volumes. But it seems strange. The errored files are not located at that path. They are located at: /Volumes/wd.4tb.1/Movies/Jungle.2.Jungle.1997.DVD-Rip/ 331411 bytes - fanart - Jungle 2 Jungle -> /Volumes/w-fanart.jpg 600736 bytes - poster - Jungle 2 Jungle -> /Volumes/w-poster.jpg I then manually moved the files to the correct place. Also fixed the permissions on the files I had to run with su. Then reimport the mixup.dat. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-03-03 As I said on your github issue, I'll need a logfile to investigate further. RE: [RELEASE] Texture Cache Maintenance utility - desepticon - 2019-03-05 Would it be possible to add a "resume" argument to the "play" function? I've been trying to make some voice activated commands leveraging texturecache.py, but my favorite one - where you can tell Kodi to play a specific movie through a voice command, will only start a movie at the beginning. Thanks! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2019-03-06 (2019-03-05, 14:12)desepticon Wrote: Would it be possible to add a "resume" argument to the "play" function? I've been trying to make some voice activated commands leveraging texturecache.py, but my favorite one - where you can tell Kodi to play a specific movie through a voice command, will only start a movie at the beginning. Thanks! Not possible as the JSON "Player.Open" method doesn't respect a stored resume point. The option to start from the beginning, a stored resume point (or maybe an arbitrary timecode) would need to be added to the "Player.Open" JSON method, via the Kodi Forum "Feature Request" process. RE: [RELEASE] Texture Cache Maintenance utility - desepticon - 2019-03-06 (2019-03-06, 07:23)Milhouse Wrote: ...via the Kodi Forum "Feature Request" process....done. I hope they add it. |