[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 - Simorgh - 2016-12-04 (2016-12-04, 01:14)Milhouse Wrote: If it's just an empty folder, why worry about it? I ran texturecache.py nc and it still tells me that there are animated stuff that needs to be cached: Code: osmc@SimorghOSMC:~$ ./texturecache.py nc Should I delete Textures13.db file and run "./texturecache.py c " again? Thank you. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-04 (2016-12-04, 05:11)Simorgh Wrote: I ran texturecache.py nc and it still tells me that there are animated stuff that needs to be cached: Is this using the texturecache.cfg from post #2077? If so, can you run the following and paste the output Code: ./texturecache.py config Can you also upload the contents of /tmp/tc.log to a pastebin site and post the link. RE: [RELEASE] Texture Cache Maintenance utility - Simorgh - 2016-12-04 (2016-12-04, 15:39)Milhouse Wrote: Is this using the texturecache.cfg from post #2077? Thank you for your reply @Milhouse I don't have anything in the .cfg file except: Code: allow.recacheall=yes Code: osmc@SimorghOSMC:~$ ./texturecache.py config Code: osmc@SimorghOSMC:~$ ./texturecache.py nc movies Zootopia @logfile=/tmp/tc.log Code: osmc@SimorghOSMC:~$ ./texturecache.py jd movies Zootopia Uploaded /tmp/tc.log to http://paste.osmc.io/fakoletaye Thank you in advance. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-04 (2016-12-04, 19:20)Simorgh Wrote: I don't have anything in the .cfg file except: Then that is your problem. Add the following in texturecache.cfg: Code: cache.ignore.types=+^special://thumbnails RE: [RELEASE] Texture Cache Maintenance utility - Simorgh - 2016-12-04 Thank you. Does deleting the Textures13.db file do any good? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-04 Only if you've deleted your entire Thumbnails folder. You can run "texturecache.py Xd" to resolve any issues if you've removed files from the Thumbnails folder. RE: [RELEASE] Texture Cache Maintenance utility - Simorgh - 2016-12-05 (2016-12-04, 21:03)Milhouse Wrote: Only if you've deleted your entire Thumbnails folder. You can run "texturecache.py Xd" to resolve any issues if you've removed files from the Thumbnails folder.Thank you for your time. I still STRONGLY think you should have a donation solution for people who want to buy you a beer/soda. RE: [RELEASE] Texture Cache Maintenance utility - Glorious1 - 2016-12-05 I'm still having trouble wrapping my mind around all this. One problem I realized is that I'm unsure what is meant by the terms "library" or "media library" in this context. Does that refer to the collection of media/movie files, perhaps with original artwork, stored locally on disk somewhere? Or is it some Kodi database (if so, what?). Or is it used loosely, sometimes referring to the media files and sometimes to a database? So many questions . . . I was also trying to understand userdata = ~/.xbmc/userdata. What is this .xbmc folder in my home directory, which seems to have not much in it? How is it related or linked to the real userdata folder in (my case at) ~/Library/Application Support/Kodi/userdata ?? RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-06 "Media library" => Database (MyVideos, MyMusic etc.). Can be SQLite or MySQL. "File system" => Your collection of media/movie files, and maybe original artwork if you have this "locally" .xbmc is/was the old folder used by XBMC prior to the Kodi rebranding - it should now be called .kodi. You may have an .xbmc folder from an old installation, it can probably be removed assuming you have upgraded to Kodi. RE: [RELEASE] Texture Cache Maintenance utility - Glorious1 - 2016-12-06 Thank you for the clarification. (2016-12-06, 10:21)Milhouse Wrote: .xbmc is/was the old folder used by XBMC prior to the Kodi rebranding - it should now be called .kodi. You may have an .xbmc folder from an old installation, it can probably be removed assuming you have upgraded to Kodi. But why is there a ~/.kodi/userdata, and a ~/Library/Application Support/Kodi/userdata ? Is the first one some kind of alias? It doesn't seem to have any actual databases in it. Yet that's the one texturecache.py refers to. The latter one has all the contents. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-06 (2016-12-06, 17:35)Glorious1 Wrote: But why is there a ~/.kodi/userdata, and a ~/Library/Application Support/Kodi/userdata ? Is the first one some kind of alias? It doesn't seem to have any actual databases in it. Yet that's the one texturecache.py refers to. The latter one has all the contents. I don't know why you have ~/.kodi/userdata on MacOS. The script will (should) default the userdata property to ~/Library/Application Support/Kodi/userdata if it detects it is running on a Darwin (MacOS) platform. If you don't set the userdata property in texturecache.cfg, what value is the script using? You can check with "texturecache.py config | grep userdata" RE: [RELEASE] Texture Cache Maintenance utility - Glorious1 - 2016-12-07 (2016-12-06, 19:49)Milhouse Wrote: If you don't set the userdata property in texturecache.cfg, what value is the script using? You can check with "texturecache.py config | grep userdata" Indeed it is using what you expected. Sorry, I think my confusion came from the first post in this thread, where the configuration is given as userdata = ~/.xbmc/userdata Obviously that's very old and not applicable to all systems. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-07 (2016-12-07, 02:17)Glorious1 Wrote: Obviously that's very old and not applicable to all systems. Yes, and it's just a sample configuration, as you should only set properties that you _need_ to change. Most properties will default to sensible values for your platform. RE: [RELEASE] Texture Cache Maintenance utility - Xq1xq1xq1 - 2016-12-08 I am running kodibuntu. I am getting these errors when running texturecache and I do not know how to fix it: root@kod:~# /home/kodi/python/texturecache.py C Traceback (most recent call last): File "/home/kodi/python/texturecache.py", line 8583, in <module> main(sys.argv[1:]) File "/home/kodi/python/texturecache.py", line 8283, in main if not checkConfig(argv[0]): sys.exit(2) File "/home/kodi/python/texturecache.py", line 7868, in checkConfig gConfig.HAS_PVR = ("result" in data and data["result"].get("System.GetBool(pvrmanager.enabled)", False)) AttributeError: 'NoneType' object has no attribute 'get' This is my config file: root@kodi-CF-31ACB7FDM:~# cat /home/kodi/python/texturecache.cfg #userdata = ~/.xbmc/userdata/ #userdata = /home/osmc/.kodi/userdata/ userdata = ~/.kodi/userdata/ #dbfile = Database/Textures13.db dbfile = ~/.kodi/userdata/Database/Textures13.db #thumbnails = Thumbnails/ thumbnails = ~/.kodi/userdata/Thumbnails/ webserver.username = user webserver.password = pwd xbmc.host = localhost webserver.port = 8080 rpc.port = 9090 download.threads = 2 #extrajson.albums = #extrajson.artists = #extrajson.songs = #extrajson.movies = #extrajson.sets = #extrajson.tvshows.tvshow = #extrajson.tvshows.season = #extrajson.tvshows.episode= qaperiod = 30 #qa.file = no cache.castthumb = yes #logfile = #logfile.verbose = no #network.mac = aa:bb:cc:dd:ee:ff Thanx alot! RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2016-12-09 Upload a link to a log file - run "/home/kodi/python/texturecache.py C @log=/tmp/tc.log" then upload /tmp/tc.log to a pastebin site and paste the link (or zip and store on dropbox if too big for pastebin). |