[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 - ilf_ - 2021-05-16 @Milhouse: Thanks for this tool, very useful! I am trying to remove all titles from my library that don't have files (any more). Someone told me to check out texturecache.py, and it's indeed very cool and very powerful. However, I still haven't figured out how to achieve my task. I can find a lot of duplicates, like this example:
The example directory only contains one file:
The options/parameter proposed in the other thread are not limited to "no media file exists (any more)", because it finds both:
This is the library query output for this movie title:
My question is: How can I
Thanks, and keep up the good work! RE: [RELEASE] Texture Cache Maintenance utility - Rouzax - 2021-05-19 Have recently switched to TMDB for all my episode scrapes and since then I have a show (Oogappels) that will lose the first season and than the first season will be recognised as Angry Birds Toons. This it happens after this until has run. Should this tool also still work with TMDB as data provider? RE: [RELEASE] Texture Cache Maintenance utility - Klojum - 2021-05-19 (2021-05-19, 19:01)Rouzax Wrote: Should this tool also still work with TMDB as data provider? Usually no scraper will switch or lose an assigned TV shows per season. I'd try to refresh/rescrape this TV show manually via Kodi. You should get a listing of matching TV shows, and normally 'Oogappels' should be there. RE: [RELEASE] Texture Cache Maintenance utility - ilf_ - 2021-05-19 (2021-05-16, 14:51)ilf_ Wrote: I am trying to remove all titles from my library that don't have files (any more). Someone told me to check out texturecache.py, and it's indeed very cool and very powerful. I ran "texturecache.py vclean" and it seems to have done what I want. This is cool! But weird. According to Milhouse himself, "'vclean' just executes the same video library cleanup process that you would run from the Kodi GUI". But according to Kodi wiki, "when you run this option your media may not be deleted as expected". And indeed, when I run "clean library" from the GUI, titles that have no file are kept in the library. But when I run "texturecache.py vclean", titles that have no file are removed from the library. Is this correct? What exactly does "texturecache.py vclean" do? The documentation only sais "Clean video library" without explaining any further details. I have looked into the 8672 lines of code in texturecache.py, but unfortunately my Python is not good enough to figure this out myself from source. Thanks for your work and help! RE: [RELEASE] Texture Cache Maintenance utility - Rouzax - 2021-05-24 (2021-05-19, 19:33)Klojum Wrote:(2021-05-19, 19:01)Rouzax Wrote: Should this tool also still work with TMDB as data provider? I know and I've removed it from the library over and over again and did a library update which fixed everything, but after each run of this script it will find Angry Bird Toons from the first season of Oogappels RE: [RELEASE] Texture Cache Maintenance utility - monkeyman - 2021-07-19 (2020-06-05, 03:38)Milhouse Wrote:I dumped and re-scraped my full library this weekend and ran into issues with fanart.tv blocking requests from texturecache.py (503 errors after the first 20-30 artwork download requests). I was able to work around this by setting download.prime=no and download.retry=0 in texturecache.cfg, and then added time.sleep(0.5) to line 1110 of texturecache.py v2.5.4. This slowed down the requests from texturecache.py enough to avoid getting blocked.(2020-06-03, 10:50)peque Wrote: As I said somewhere below that, I found a way to add a second sleep time between requests to your script... but fanart.tv still banned me every few requests. I had to cancel the script and restart it, so I could download artwork again. Would it be possible to make any modifications to the official version of texturecache.py to avoid this workaround? It looks like the script already limits requests to fanart.tv to a single thread, so could requests to that domain be rate limited as well? It's not ideal to have to slow down these requests so much, but the alternative is to run the script, kill it once requests start getting blocked, then restart the script. This can be a tedious process if thousands of items need to be cached. RE: [RELEASE] Texture Cache Maintenance utility - Klojum - 2021-07-19 (2021-07-19, 17:30)monkeyman Wrote: Would it be possible to make any modifications to the official version of texturecache.py to avoid this workaround? I see you quoted a post from Milhouse. In case you didn't know yet, sadly, Milhouse chose to lay down his Kodi/LibreELEC tasks some time ago, and move on to other things in life. Also, in the meantime a Python-3 version of the TextureCache tool has been created and added to the Video Database Cleaner add-on , you should find it in the github page mentioned at the top of the opening post. It seems like a logical step to go from there and do your additions and/or changes. RE: [RELEASE] Texture Cache Maintenance utility - DGenerateKane - 2021-07-20 (2021-07-19, 19:36)Klojum Wrote:How would anyone know? He's still listed as Team Kodi member.(2021-07-19, 17:30)monkeyman Wrote: Would it be possible to make any modifications to the official version of texturecache.py to avoid this workaround? RE: [RELEASE] Texture Cache Maintenance utility - Klojum - 2021-07-20 (2021-07-20, 04:30)DGenerateKane Wrote: How would anyone know? He's still listed as Team Kodi member. Plenty of people already got the memo on his departure, but his forum details were indeed still unchanged. I've amended them now. RE: [RELEASE] Texture Cache Maintenance utility - danmedhurst - 2021-08-27 So i've been using texturecache for years and it's never failed me, but on a new matrix install i've getting a few thousand files it's not able to grab for movies mainly.. is this tool no longer the go to? Should i be using something else to cache the artwork? I've seen artwork beef but i'm really no able to ascertain if it does the same thing.. RE: [RELEASE] Texture Cache Maintenance utility - queeup - 2021-09-03 I am using this command to remove movies under imdb rating 5. Is there any other way to do that differently? I mean more elegant way?
Also is there a way to remove from library and also removing video files from harddisk? RE: [RELEASE] Texture Cache Maintenance utility - xbmandrea - 2021-09-03 Hi Milhouse, thanks for your tool! I have a simple question, but I can't figure it out on my own. I need help. With this command Code: texturecache.py jd movies "2012" Code: [ So I execute the command: Code: texturecache.py c movies "2012" Code: Need to cache: [ fanart ] for movie: 2012 Thanks RE: [RELEASE] Texture Cache Maintenance utility - Klojum - 2021-09-03 (2021-09-03, 22:21)xbmandrea Wrote: Hi Milhouse, thanks for your tool! In case you missed the memo, Milhouse has left the Kodi building some time ago. But perhaps others can help you out with your question(s). RE: [RELEASE] Texture Cache Maintenance utility - littlejeem - 2021-09-07 (2021-09-03, 18:58)queeup Wrote: I am using this command to remove movies under imdb rating 5. Is there any other way to do that differently? I mean more elegant way? Hello @queeup I can't help improve the elegance of the one-liner you've written but perhaps this might help with the functionality you wanted.
All I've done here is focus on the removal of the file , so we stick with you texturecache use but jq -r asks for raw output (no "" marks). Moving from a 'for' loop to a 'while/where' gets us off the hook for problems with newlines, finally the find command helps us match an existing file to the value of $i so we don't match random stuff and prints the output.If you are happy with the results you are getting back then change the -print to -delete .A normal library clean from within Kodi, via texturecache, or via json will remove the, now non existent, movies from the library. ...will leave some empty parent folders though. RE: [RELEASE] Texture Cache Maintenance utility - lpt2007 - 2021-09-22 I try to add missing poster with command: texturecache.py c tvshows "'Allo 'Allo!" and I get error: Traceback (most recent call last): File "/usr/bin/texturecache.py", line 8663, in <module> main(sys.argv[1:]) File "/usr/bin/texturecache.py", line 8353, in main if not checkConfig(argv[0]): sys.exit(2) File "/usr/bin/texturecache.py", line 7893, in checkConfig data = wcomms.sendJSON(REQUEST, "libPing", checkResult=False, useWebServer=True) File "/usr/bin/texturecache.py", line 2230, in sendJSON return self.sendWeb("POST", "/jsonrpc", id, request, {"Content-Type": "application/json"}, timeout=timeout) File "/usr/bin/texturecache.py", line 2177, in sendWeb raise httplib.HTTPException("Remote web host requires webserver.username/webserver.password properties") httplib.HTTPException: Remote web host requires webserver.username/webserver.password properties |