[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 - nsviper - 2013-04-19 Quote:root@xbian:~# ./texturecache.py jd movies Cloverfield Ok so if I want to limit the scan so that only poster and fanart are checked for / queued / download (frmo local), are there settings in the .cfg file I need? RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-19 (2013-04-19, 19:44)nsviper Wrote: Ok so if I want to limit the scan so that only poster and fanart are checked for / queued / download (frmo local), are there settings in the .cfg file I need? If you only want to pre-load local content then the following added to the properties file should do the trick: Code: cache.ignore.types = image://video, image://music, image://http RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-19 (2013-04-19, 17:26)3dfx Wrote: That would be nice, I really want to clean up the mess in the Thumbnails folder @3dfx: Can you enable PM, I'm trying to send you a PM and it's telling me you have it disabled... RE: [RELEASE] Texture Cache maintenance utility - 3dfx - 2013-04-20 (2013-04-19, 21:38)MilhouseVH Wrote:(2013-04-19, 17:26)3dfx Wrote: That would be nice, I really want to clean up the mess in the Thumbnails folder Why, why did I do that? I didn't..... I guess It's enabled now RE: [RELEASE] Texture Cache maintenance utility - charrua - 2013-04-20 Trying the last version (0.5.3) here. Is it supposed to work with Python 3.3.1? Cause it's returning this error: Code: texturecache.py version THX! RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-20 (2013-04-20, 23:24)charrua Wrote: Trying the last version (0.5.3) here. Good spot... Fixed in v0.5.4 (just pushed to github). v0.5.4 * Fixed sqlite3 characterset decode issue * Default value for singlethread.urls is now assets\.fanart\.tv, to avoid hammering fanart.tv (logos, clearart, discart, etc.) as this site appears to reject multiple concurrent requests * Write command line args and current version to logfile (if logfile is enabled) * Added orphan.limit.check property to allow disabling of safety check when removing orphan files - default value is yes (safety check enabled). * Updated directory traversing code to traverse an arbitrary number of directory levels (r, R, p, P) - previously limited to 2-3 directory levels. * Fix base64.encodestring() in Python3 @3dfx - you can auto-update using the "fupdate" option (force update - ignores current version). Many thanks for your help with testing! RE: [RELEASE] Texture Cache maintenance utility - charrua - 2013-04-21 (2013-04-20, 23:48)MilhouseVH Wrote:Great job as always.(2013-04-20, 23:24)charrua Wrote: Trying the last version (0.5.3) here.Good spot... Fixed in v0.5.4 (just pushed to github). RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-21 FYI, v0.5.4 included a bug in the nc option that prevented the "Need to cache" message from appearing... fixed in latest version. Version 0.5.5 * Fix: "Need to cache" message not appearing (lnc, nc) * Fix: Not processing all seasons correctly during lnc and lc * Modified lnc/lc to discard tvshow seasons that do not have a new episode - previously considered for caching all seasons of a tvshow with at least one new episode * Show summary of recently added movies/tvshows (lnc, lc) * Added lastrunfile date/time to stats summary information (lnc, lc) RE: [RELEASE] Texture Cache maintenance utility - zestef - 2013-04-27 Hi, Great script, but no success for me in trying it (cleaning sets) Platform MacOs 10.8 / Python 2.7.2 (is 2.7.3 mandatory ?) / specific texturecache.cfg file. Code: Zephyr:downloads zestef$ ./texturecache.py C sets "Ace Ventura" LogFile : Code: 2013-04-27 22:51:41.237794:MainThread: Command line args: ['./texturecache.py', 'C', 'sets', 'Ace Ventura'] Any idea ? (Tried to increase timeout on line 772 without success) Regards. Zestef. RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-04-27 Is this repeatable? If you are not using MySQL, could you send me your MyVideos75.db (PM me a download link etc.)? Another option is to enable "logfile.verbose=yes" in the properties file and send me a link to the resulting log file which will contain a LOT more information (don't paste it here!), although sending me your MyVideos75.db would be preferable, particularly if this is repeatable. Increasing the timeout won't do any good as it's a JSON data conversion issue - it thinks it's received a partial/incomplete JSON response and is trying to read the socket for more data which never comes. I need to understand why the JSON response is not considered valid. RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-05-02 Version 0.5.6 * Change: Use local time and not UTC for lastrunfile timestamp (media library dateadded appears to be using local time, so this is more consistent) Version 0.5.7 * Don't check for error during title lookup - if an OnRemove notification is received, the item being removed may already have been removed from the media library before the lookup is executed (but sometimes not). Return None for the title whenever an item no longer exists. * Add power option, supporting states of suspend, hibernate, reboot or shutdown. This allows the XBMC client to be rebooted, shutdown etc. * Add albums, artists and songs support to qa option (but no qax support as music items can't be removed from the media library). * Add QA checks for artwork urls during qa/qax, failing/warning QA if found. Default fail urls are "image://video, image://music", there is no default "warn" url. Specify alternative urls using qa.fail.urls and qa.warn.urls properties (comma delimited patterns). Rescan will be triggered only for fail, not warn. * Ignore JSON encode errors (should fix problem encountered by zestef - many thanks for helping out with testing). RE: [RELEASE] Texture Cache maintenance utility - charrua - 2013-05-02 Thanks for the update. I found this error when using option qa for either albums, artists or songs: Code: texturecache.py qa songs RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-05-02 /Milhouse gently weeps... Is this Python 3.3 by any chance? Can you provide me a link to your MyMusic32.db as although I have some foreign characters in my Music library, none of them are triggering this problem in Windows with either Python 2.7.x or Python 3.3. Re: RE: [RELEASE] Texture Cache maintenance utility - charrua - 2013-05-03 (2013-05-02, 20:45)MilhouseVH Wrote: /Milhouse gently weeps...yes, it's Python 3.3.1 as stated in a previous post. (2013-05-02, 20:45)MilhouseVH Wrote: Can you provide me a link to your MyMusic32.db as although I have some foreign characters in my Music library, none of them are triggering this problem in Windows with either Python 2.7.x or Python 3.3.I use MySQL for the DB so I don't have MyMusic32.db and I have a big music library so the music DB dump from MySQL is about 60Mb. I'll try to pinpoint the albums, artists and songs that trigger this error and let you know. Thanks RE: [RELEASE] Texture Cache maintenance utility - Milhouse - 2013-05-03 (2013-05-03, 12:09)charrua Wrote: I use MySQL for the DB so I don't have MyMusic32.db and I have a big music library so the music DB dump from MySQL is about 60Mb. Much appreciated. You can supply a filter to qa, eg. "qa songs africa" (although it's the song after Africa that is causing the problem) which should speed things up. Partial filter matches also work. If you enable the logfile and logfile.verbose properties, the logfile information might help with any diagnosis/solution. With Python2 I've been able to replace stdout and stderr with Unicode-savvy codecs, but have so far failed to get this to work in Python3 which explains why you're hitting this - I'll keep looking for a solution though... |