[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 - Milhouse - 2017-11-12 (2017-11-12, 00:22)wallacebw Wrote:(2017-11-10, 20:58)Milhouse Wrote: @wallacebw thanks I've added the support for https to mklocal.py, you'll need to re-download the mklocal.py script to update (it doesn't auto-update). Possibly, at the very least it would require gif support in addition to png and jpg, so this patch: http://sprunge.us/IYjN You will probably need to add the artwork types on the command line, ie. "--artwork animatedfanart animatedposter" Other than that I don't know much about animated artwork, so can't really say what else might not work. I'll take a patch, though. RE: [RELEASE] Texture Cache Maintenance utility - wallacebw - 2017-11-12 (2017-11-12, 00:52)Milhouse Wrote:(2017-11-12, 00:22)wallacebw Wrote:(2017-11-10, 20:58)Milhouse Wrote: @wallacebw thanks I've added the support for https to mklocal.py, you'll need to re-download the mklocal.py script to update (it doesn't auto-update). Thanks... looks like there is also an extension reference on line 666, but it may not be worth merging. I believe script.module.metadatautils identifies them and adds them to a folder belonging to the service. e.g.: "animatedfanart": "image://special://profile/addon_data/script.module.metadatautils/animatedgifs/tt1253863_fanart.gif/", "animatedposter": "image://special://profile/addon_data/script.module.metadatautils/animatedgifs/tt1253863_poster.gif/", ok, I may need to look for another solution or write something custom, as shifting local artwork may cause excess scope creep and be outside of the intent of this program. Thanks again for the fast response. TV Shows Being Merged That Shouldn't Be - radigast - 2017-11-12 Problem: Certain TV Shows are repeatedly getting merged together after both items are scanned in using texturecache.py. The first is always joined to the second and no longer has its own database entry. Background: Fresh install of Kodi Krypton 17.5, Windows 10, texturecache.py 2.4.4, "Home" TV show, "Jillian Michaels" workout video. "Home" .nfo file (named tvshow.nfo within the directory the single TV show is in) - https://pastebin.com/raw/9QHnSfWL Jillian Michaels .nfo file (named tvshow.nfo within the directory the single TV show is in) - https://pastebin.com/raw/0NqJuR8V Procedure:
Suggestions: Any ideas what to do next? I'm not sure if this is a bug in texturecache.py or Kodi, or if I am just overlooking something. Thanks in advance! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-12 @radigast this is a scanning bug in Kodi. The texturecache.py script is simply asking Kodi to perform library scans of the relevant folders - what Kodi does after that is entirely down to Kodi, and in this case it's going a little bit wrong. I would suggest opening a ticket on trac.kodi.tv, and I would say that steps 1, 2, 5, 6, 7 and 10 are the only relevant steps for the ticket - caching has nothing to do with this. It's clear that when you scan the second show ("Jillian Michaels ...") that Kodi is overwriting the first TV show ("Home") as both are being created with the tvshow id #1, which is why all the episodes appear to be merged together as they're both linked to tvshow id #1. Kodi should be allocating a new tvshow id #2 to the second tvshow ("Jillian Michaels ..."), and then linking the new episode #2 to tvshow id #2. RE: [RELEASE] Texture Cache Maintenance utility - musicadi - 2017-11-14 Hi Milhouse, Thank you for the script, it's really cool! A few questions: - is there a way to locate the thumbnail of a local picture in the Thumbnails folder, by using the filename? I modified a picture and want Kodi to grab the new on as the thumbnail. - I am accessing Kodi (LibreELEC) remotely from macOS 10.12.6. How do I correctly point to the Userdata folder on my Kodi box? I now use /Volumes/Userdata/, but that means the folder has to be mounted from within macOS. Is there a way to point directly to the folder using the IP address of the box? Thank you! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-14 (2017-11-14, 22:43)musicadi Wrote: - is there a way to locate the thumbnail of a local picture in the Thumbnails folder, by using the filename? I modified a picture and want Kodi to grab the new on as the thumbnail. Use "texturecache.py s filename", eg. Code: texturecache.py s /storage/.kodi/addons/plugin.video.netflix/resources/fanart.jpg Code: 042009|6/6f56e082.jpg|0720|1280|0009|2017-11-05 22:13:43|2017-11-05 22:11:48|/storage/.kodi/addons/plugin.video.netflix/resources/fanart.jpg where "6/6f56e082.jpg" is the filename within the Thumbnails folder. You can delete the cached artwork (and matching database row) with "texturecache.py d 42009" However if you've modified the original thumbnail, then simply re-cache it. (2017-11-14, 22:43)musicadi Wrote: - I am accessing Kodi (LibreELEC) remotely from macOS 10.12.6. How do I correctly point to the Userdata folder on my Kodi box? I now use /Volumes/Userdata/, but that means the folder has to be mounted from within macOS. Mounting locally on the machine running the script is one option. The other option is to push the script to the remote machine and run it locally on the remote machine, as this is easy enough to accomplish with a combination of scp and ssh particularly when scripting a complete solution. (2017-11-14, 22:43)musicadi Wrote: Is there a way to point directly to the folder using the IP address of the box? No. RE: [RELEASE] Texture Cache Maintenance utility - radigast - 2017-11-18 (2017-11-12, 17:40)Milhouse Wrote: @radigast this is a scanning bug in Kodi.Thanks for the tip, Milhouse! As it turns out, this seems to be fixed in Krypton 17.6; those same database glitches appear to have been rectified. Sage advice, as usual! RE: [RELEASE] Texture Cache Maintenance utility - wallacebw - 2017-11-22 Question: is there a way to translate the special:// paths (http://kodi.wiki/view/Special_protocol) to traditional filesystem paths in scripts like mklocal.py? I enabled gif support and added a workaround for my use case, but it wouldn't be needed if there was an easy way to translate these paths. For reference, i replaced line 522 from: Code: newsource = source to Code:
[RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-22 Not really, because special://profile is dependent on both the current system and also your current profile in Kodi. And writing GIF files into userdata (and sometimes directly into Thumbnails) is just wrong, so the way GIF support has been implemented should be fixed making it less of a kludge. RE: [RELEASE] Texture Cache Maintenance utility - Fredouye - 2017-11-28 Hi all I think it hasn't been discussed here, but free keys for OMDB API are available since 11/02 : http://www.omdbapi.com It's working fine with 'omdb.apikey=xxxx' in texturecache.cfg RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-28 (2017-11-28, 09:15)Fredouye Wrote: Hi all Unfortunately with a 1,000 daily query limit most users will blow through that just with movies, let alone episodes. A weekly limit of maybe 10K or 20K queries would be more usable. It's better than nothing, but the limit is too low to reliably update a moderately sized library even if you were to update movies on a Sunday and episodes a day or two later. I forsee issues being reported from users in future asking why the imdb update starts to fail after "a few hundred" successful attempts (answer: API key limit exceeded). I'm probably going to have to code a check that detects when the API query is failing due to the limit and ends the run rather than continue throwing more queries at the site which will all fail. RE: [RELEASE] Texture Cache Maintenance utility - CaptainKen - 2017-12-04 I've recently discovered that ever since implementing a new HTPC and switching to Kodi Krypton in July, AD (set to use local) doesn't download or cache extra artwork such as disc, clearart, banner, etc. This includes extra artwork that I manual put in place. I manually scrape posters, fanart and extrathumbs, which all show up. Does the AD issue have to do with this post from Shedrock? I was hoping that TC, would cache it, but no luck. This is what I run regularly from a DOS batch file, perhaps I'm not using the correct command: texturecache.py P @logfile=C:\Temp\TC-P.log texturecache.py R @logfile=C:\Temp\TC-R.log texturecache.py R cache.ignore.types=.*\.gif,.*\.GIF texturecache.py Xd texturecache.py c video @logfile=C:\Temp\TC-C-video.log texturecache.py c sets @logfile=C:\Temp\TC-C-sets.log The 2nd issue is the it's reporting errors indicating that some *-thumbs.jpg aren't valid. I've confirmed that this is true for some media, but not for all that it shows. The ones that it claims are missing, but are there can be opened and viewed so they aren't corrupt. I was also under the impression that TC would create the missing ones. Here are my TC Logs RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-12-05 (2017-12-04, 16:39)CaptainKen Wrote: Does the AD issue have to do with this post from Shedrock? Hard to say - Artwork Downloader has many issues due to lack of maintenance, so I'd suggest using Artwork Beef instead which is actively maintained. (2017-12-04, 16:39)CaptainKen Wrote: I was hoping that TC, would cache it, but no luck. This is what I run regularly from a DOS batch file, perhaps I'm not using the correct command: This script will only cache what is already in your media library. If Artwork Downloader isn't adding local artwork to your media library then there is nothing for Texture Cache to cache. You could use mklocal.py as an alternative to Artwork Downloader/Artwork Beef if you only want to load/associate local artwork. (2017-12-04, 16:39)CaptainKen Wrote: The 2nd issue is the it's reporting errors indicating that some *-thumbs.jpg aren't valid. I've confirmed that this is true for some media, but not for all that it shows. The ones that it claims are missing, but are there can be opened and viewed so they aren't corrupt.I can't tell anything from your logs as they are not complete - I think you have "logfile.verbose = no" which removes a lot of useful information. It would help if you mentioned which files the script claims are missing, but you are sure exist. Otherwise I don't know which ones are being correctly flagged as missing. If the script is not able to cache artwork then you should look in your kodi.log for any errors as it is Kodi that is not able to download the artwork. (2017-12-04, 16:39)CaptainKen Wrote: I was also under the impression that TC would create the missing ones.If you mean associate new local artwork with movies - no, that's the job of mklocal.py (or Artwork Downloader/Beef etc.). If you mean replace an already cached version of an image then yes, the script will do that - so long as Kodi is able to download/access the artwork. RE: [RELEASE] Texture Cache Maintenance utility - firewater - 2017-12-13 (2017-11-08, 09:33)Milhouse Wrote: Add @logfile=tc.log to your command line, and run the command for the movie you've changed, eg "texturecache.py C movies avatar @cache.refresh=3 @logfile=tc.log" then send me the contents of tc.log. It should be retrieving the modification timestamp of poster.jpg and determining it is within the last 3 days.Sorry it took me a lifetime to get around to doing this. Here it is > https://pastebin.com/UVEmCkVw The contents of the folder are: az.jpg (renamed from poster.jpg, still is the poster attached to the movie) / Ma Nuit Chez Maud.en.srt / Ma Nuit Chez Maud.mkv / movie.nfo / poster.jpg (new poster) RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-12-13 (2017-12-13, 03:24)firewater Wrote: The contents of the folder are: az.jpg (renamed from poster.jpg, still is the poster attached to the movie) / Ma Nuit Chez Maud.en.srt / Ma Nuit Chez Maud.mkv / movie.nfo / poster.jpg (new poster) Based on your log: 1. The poster artwork attached to the movie is poster.jpg: Code: { 2. The contents of your movie folder is: Code: { The timestamp on the poster.jpg file is within 3 days (script run at 2017-12-12 22:21:58) The az.jpg file is no longer associated with the movie - it's just a random file in the movie folder. 3. The poster artwork, poster.jpg, is being deleted, and re-cached: Code: 2017-12-12 22:22:00.009307:MainThread: QUEUE ITEM: {3, "movies", "poster", "My Night at Maud's", None, None, "M:\Media\Video\Movie\Kodi\Ma Nuit Chez Maud\poster.jpg", 7, "b/b97f155a.jpg", 7, False} Code: . 4. Summary: Looks to be working fine to me. What do you think is the problem? |