[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 - QuattroGam3r - 2015-03-07 Excellent, I set rpc.ipversion = 4 in the cfg file and now it runs in less than 30 seconds. Thank you for the fix. As for the ipv6 issue, I believe that problem lies in Apple products. They don't trust ipv6, so ipv4 is set to take priority. Unfortunately I have Apple routers and computers, so Probably not going to be able to fix that. Of course that's based on info I researched a few years ago, but it still seems to be the case. RE: [RELEASE] Texture Cache Maintenance utility - raspberry_pd - 2015-03-07 Hi Thanks again for this great script. Checked the documentation and tried several options, all of which just return minimally-legible JSON errors. How do I use the play option? I don't get the need for a player when AFAIK my Raspberry Pi setup only has one (omxplayer?). Code: play Play the specified item (on the specified player: null, default, #) Nor do I understand what a valid "item" would be. Code: play item [playerid] Tried full episode titles as the "item". Tried episode id as the "item". No luck. Please help pd RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-07 You can pass a url, or file system path (ie. nfs://), as the "item". Example: Code: texturecache.py play "nfs://192.168.0.3/mnt/share/media/Video/MoviesSD/Avatar (2009)[DVDRip].m4v" The file system path has to be accessible by Kodi, so it has to be a path that is present in your sources.xml. RE: [RELEASE] Texture Cache Maintenance utility - raspberry_pd - 2015-03-08 Thanks Milhouse! RE: [RELEASE] Texture Cache Maintenance utility - kimme - 2015-03-09 Thanks, this script has helped me with rebuilding my picture cache/database on my Raspberry Pi when I upgraded from version 1B to 2. Had only to manually make the texturecache.cfg with putty when I ssh'ed to my pi with adding the correct name and password for my webserver... RE: [RELEASE] Texture Cache Maintenance utility - isamu.dragon - 2015-03-14 If I may request a minor feature. Could we have a prune option similar to the cache option Code: ./texturecache.py P movies that way it doesn't wipeout stuff like youtube, or if we are removing items from only 1 of those types RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-14 Not really. The prune option is identifying cached artwork that is not also present in the media library, and therefore suitable for "pruning". The prune option has no idea what type of cached artwork it is dealing with because, by definition, it's not in the media library which would allow a "type" to be determined for the artwork. The script simply doesn't know if the cached artwork is (was) a movie, or tvshow, etc., so a media class can't be applied to the prune option. If there are particular urls you want to retain while pruning, you can add patterns to @prune.retain.types, eg. "@prune.retain.types=.*youtube.com.*", which will prevent matching urls from being removed. RE: [RELEASE] Texture Cache Maintenance utility - QuattroGam3r - 2015-03-17 @Milhouse, could you please help me. I just upgraded to a PI2 running OSMC RC and for whatever reason I cannot run ./texturecache.py. I've done the chmod +x, i've tried moving it out of the osmc directory. I just can't understand why when I run it, it says No such file or directory. Even though ls shows it right there. The only reason i'm trying to run it locally is that when I try to run S,s,R or r from my mac it tells me: FATAL: The task you wish to perform requires read/write file access to the Thumbnails folder, which is inaccessible. Specify the location of this folder using the thumbnails property as an absolute path or relative to the userdata property. The currently configured Thumbnails path is: /home/osmc/.kodi/userdata/Thumbnails/ Check userdata and thumbnails settings in properties file texturecache.cfg Thumbnails folder is set to 755 by default (drwxr-xr-x), and the path looks correct, but it won't run without FATAL. Please help me figure out what i'm missing here. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-17 (2015-03-17, 02:16)gardnerd4me Wrote: I cannot run ./texturecache.py. Is Python installed by default on OSMC? What do you see if, on OSMC, you run "python --version", "which python" and finally "echo $PATH"? RE: [RELEASE] Texture Cache Maintenance utility - QuattroGam3r - 2015-03-17 Python 2.7.9 RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-17 What about: Code: which python Code: pwd I can only imagine the script is not finding your Python interpreter, for some reason. Also double check you haven't downloaded the HTML web page instead of the script source code. RE: [RELEASE] Texture Cache Maintenance utility - QuattroGam3r - 2015-03-17 (2015-03-17, 02:38)Milhouse Wrote: What about: which python /usr/bin/python echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/opt/vc/bin pwd /home/osmc ls -la osmc@osmc:~$ ls -la total 60 drwxr-xr-x 8 osmc osmc 4096 Mar 16 16:57 . drwxr-xr-x 3 root root 4096 Dec 31 1969 .. -rw------- 1 osmc osmc 26 Mar 15 23:44 .bash_history -rw-r--r-- 1 osmc osmc 220 Nov 12 15:21 .bash_logout -rw-r--r-- 1 osmc osmc 3515 Nov 12 15:21 .bashrc drwxr-xr-x 8 osmc osmc 4096 Dec 31 1969 .kodi -rw------- 1 osmc osmc 9016 Mar 15 14:00 lircd.conf drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Movies drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Music drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Pictures -rw-r--r-- 1 osmc osmc 675 Nov 12 15:21 .profile drwxr-xr-x 2 osmc osmc 4096 Mar 15 14:09 .smb drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 TV Shows RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-17 I don't see texturecache.py in your /home/osmc directory... RE: [RELEASE] Texture Cache Maintenance utility - QuattroGam3r - 2015-03-17 Sorry, I had deleted it. ls -la total 364 drwxr-xr-x 8 osmc osmc 4096 Mar 16 17:46 . drwxr-xr-x 3 root root 4096 Dec 31 1969 .. -rw------- 1 osmc osmc 26 Mar 15 23:44 .bash_history -rw-r--r-- 1 osmc osmc 220 Nov 12 15:21 .bash_logout -rw-r--r-- 1 osmc osmc 3515 Nov 12 15:21 .bashrc drwxr-xr-x 8 osmc osmc 4096 Dec 31 1969 .kodi -rw------- 1 osmc osmc 9016 Mar 15 14:00 lircd.conf drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Movies drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Music drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Pictures -rw-r--r-- 1 osmc osmc 675 Nov 12 15:21 .profile drwxr-xr-x 2 osmc osmc 4096 Mar 15 14:09 .smb -rwx--x--x 1 osmc osmc 308370 Mar 16 17:46 texturecache.py drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 TV Shows osmc@osmc:~$ ./texturecache.py : No such file or directory RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2015-03-17 Doesn't look right... This is for the latest v1.8.9: Code: rpi22:~ # ls -la texturecache.py Your file is considerably larger than it should be. Either you've downloaded an incorrect file, or you've downloaded the correct file but with DOS line endings. Download it again using the instructions in the first post. |