[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-10-29 Thanks Mr.Floppy. RE: [RELEASE] Texture Cache Maintenance utility - pacoma2610 - 2017-10-30 Using LE Milhouse Build #1029, I receive this error message since recently, so far it has always worked FATAL: The task you wish to perform requires that a JSON-RPC server with version 6 or above of the Kodi JSON-RPC API is provided. The JSON-RPC API version of the connected server is: 0 (0 means unknown) Check settings in properties file texturecache.cfg RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-10-30 (2017-10-30, 12:30)pacoma2610 Wrote: Using LE Milhouse Build #1029, Are you using the built-in version of texturecache.py or a version you downloaded? Because the built-in version in #1029 is currently modified to work around the broken JSON version in recent test builds. Anyone else will need to use this patch if they are using one of my test builds as the remote client: Code: index 8541121..44bf945 100755 or download http://sprunge.us/WcLJ which already includes the change. I'm not pushing the "fix" to the repo because it's entirely unnecessary under normal circumstances. RE: [RELEASE] Texture Cache Maintenance utility - pacoma2610 - 2017-10-30 @Milhouse Thank you with the modified Version http://sprunge.us/WcLJ is working on remote client. is it a difference to use the build in or a remote? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-10-30 (2017-10-30, 16:40)pacoma2610 Wrote: is it a difference to use the build in or a remote? For most commands there is no difference. There are only a few commands that must be run locally. RE: [RELEASE] Texture Cache Maintenance utility - firewater - 2017-11-05 Hey there, I'm looking for a way to update my .nfo and poster/fanart with just the trigger of a script. I'm currently running: "texturecache.py qax movies @qaperiod=-1 @qa.nfo.refresh=3", and it refreshes de .nfo, but not the poster. I add my movies manually with .nfo and poster.jpg. So for example I rename poster.jpg > posterold.jpg, and then put a new poster as poster.jpg. After running the command mentioned, I still get the old (now posterold.jpg) associated. Am I missing something? By the way thank you very much for all the support you gave me last time, early this year. My setup was much more convulted back then, and yet you stayed with me the whole way, really appreciate that now that I'm rereading through our conversation. [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-05 To recache existing artwork modified in the last 3 days: Code: texturecache.py C movies @cache.refresh=3 RE: [RELEASE] Texture Cache Maintenance utility - firewater - 2017-11-05 Right! Thanks, I'm sure this will work, but for now I get "A connection cannot be established to the following webserver: localhost: 8080". I just run Kodi on my computer, offline. No sharing anywhere, no server, no nothing. All other mentions of this on the thread seem to overcomplicate this, so what would be the procedure considering my scenario? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-06 (2017-11-05, 17:17)firewater Wrote: Right! Thanks, I'm sure this will work, but for now I get "A connection cannot be established to the following webserver: localhost: 8080". I just run Kodi on my computer, offline. No sharing anywhere, no server, no nothing. All other mentions of this on the thread seem to overcomplicate this, so what would be the procedure considering my scenario? Enable the webserver. Default port should be 8080, leave username and password blank. If you set a username or password, or non-default port, you'll need to configure the new values in texturecache.cfg. RE: [RELEASE] Texture Cache Maintenance utility - OldskoolOrion - 2017-11-08 Thank you for this awesome python-script.. I can toss my few loose scriptlets, which only addressed certain issues I did to myself :-) This script does it all as far as I can tell.. I just got myself an upgrade from my Mede8er media player , which is far too rigid regarding modifications I want.. and Kodi is a much more capable mediacentre - period.. I deserved it :-) However I assumed me, IT Pro for over 26 years, would definitely not be needing to study any documentation whatsoever.. since.. well.. I'm a cocky ass who knows best.. nah.. because in my spare time I love scripting / scraping / figuring stuff out especially concerning my rather extensive movie and tvshow collection (over 12.000 episodes and 794 movies atm, spread over my 4 nas's) - I can finally have beautiful metadata being displayed for everything.. so yeh.. I was excited.. and in the repo there was script.artwork.downloader.. getting extra imagery.. definitely... so I looked into the default settings and got rid of the silly constraints such as maximum images and a minimum score.. coz.. how many artwork could there be on the default sites.. right ? tossed that into a cron to run when I was dreaming of finding an ready to go metadatabase with even extras if I wouldn't like the artwork :-) and to be fair.. I did.. but also completely filled raid arrays and oh so many more 0 byte files of failed downloads LOL.. all in all.. some cli magic quickly got rid of the extrafanart folders everywhere.. but leaves me with some more manual tweaks to not have to recreate the complete libraries aka.. loving your script :-) saves me alot of time and altho I'm 100% dedicated to not really reading up on documentation and stuff.. I am glad I ran into your script when searching how to send library related commands to the kodiplayer :-) major props ! RE: [RELEASE] Texture Cache Maintenance utility - firewater - 2017-11-08 Thanks. I get this: Code: C:\Program Files (x86)\Kodi\userdata>texturecache.py C movies @cache.refresh=3 I edited the poster in use name to poster2.jpg and another poster to poster.jpg. Nothing changed. [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-08 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. RE: [RELEASE] Texture Cache Maintenance utility - wallacebw - 2017-11-10 mklocal.py https support? I may be doing something wrong, but do I need to to anything to support HTTPS URLs in mklocal.py? Code:
Update: Maybe a quick change to line 521? The below is working for me. Code:
You could also throw in other prefixes like ftp://, although it don't know of a use case for that at present. Thanks RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2017-11-10 @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). RE: [RELEASE] Texture Cache Maintenance utility - wallacebw - 2017-11-12 (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, working. One more thing, is is easy to add support for animatedfanart and animatedposter art types? |