[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 - psuch - 2013-12-05 Hi there, you were right. MySQL was not reachable. Restarted the DB-Server, now everythink works fine again Thank you very much RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-06 texturecache.py (Version 1.2.4)
RE: [RELEASE] Texture Cache Maintenance utility - h.udo - 2013-12-07 Hi MilhouseVH, Thanks for that! One tool to do it all, instead of remembering xbmc-send command sequences. Great stuff! RE: [RELEASE] Texture Cache Maintenance utility - CaptainKen - 2013-12-07 Not sure if this is a caching issue, therefore I might be posting in wrong forum. Let me know if wrong place and I'll delete this post. I have all my Christmas movies in one central folder called "Christmas" and then each in their own. Each nfo contains <set>Christmas Movies</set>. Only one movie insists on not being part of the set and I can't figure out why. I've deleted it, cleaned library, ran with the R and P options several times, but no luck. Playlist Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> Movie.NFO Re: [RELEASE] Texture Cache Maintenance utility - redglory - 2013-12-07 Please use xbmclogs.com for code. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-08 (2013-12-07, 20:42)CaptainKen Wrote: Not sure if this is a caching issue, therefore I might be posting in wrong forum. Let me know if wrong place and I'll delete this post. No, it doesn't sound like a caching issue. I would suggest looking at your set details with "jd sets christmas movies" and confirm the status of the set members - members should appear as "tc.members", unless you have disabled set membership with @setmembers=no. Starting a separate thread is probably the best way to proceed with this problem. Remove the movie and then re-scrape it, posting up the debug log (wiki) of the scrape and maybe someone familiar with scraper functionality can chime in and suggest why your movie refuses to become a set member. Maybe removing all of the set members (and thus the set) is worth a shot as well. RE: [RELEASE] Texture Cache Maintenance utility - kl1k - 2013-12-09 Just started using this utility on my Pi - when i run Code: ./texturecache.py c tvseries I notice in the texturecache log file a lot of these errors Code: 2013-12-09 12:44:48.599832:Thread-2 : ** iotimeout occurred during web request ** I've decoded one of the lines where its complaining Code: image://nfs://192.168.1.202/home/disk1/TV/Seinfeld/Season 05/Seinfeld - s05e02 - The Puffy Shirt.tbn/ Is the extra slash at the end causing the problem? The file does exist. Quote:Image not available for download - uncacheable (embedded?), or doesn't exist If so, any ideas as to how to fix it. So far its picked up 150 errors and its only been running for 10 mins. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-09 Check your xbmc.log for errors, as it seems to be XBMC that is having problems accessing the files. Maybe a problem with NFS? RE: [RELEASE] Texture Cache Maintenance utility - kl1k - 2013-12-11 (2013-12-09, 20:55)MilhouseVH Wrote: Check your xbmc.log for errors, as it seems to be XBMC that is having problems accessing the files. Maybe a problem with NFS? Mmm - so many errors in the logs. Code: 11:03:40 T:2846880832 ERROR: COMXImageFile::GetCodingType error unsupported image format Another thing I've noticed is that some of the paths are incorrect. Code: 11:38:29 T:2842686528 ERROR: NFS: Failed to stat(home/disk1/TV/2 Broke Girls/season02.tbn) stat call failed with "NFS: Lookup of //2 Broke Girls failed with NFS3ERR_NOENT(-2)" It should be home/disk2/TV...... Is there a way to completely start over while keeping the flags of what episodes have been watched? I dont mind trashing all the tbn's if I have to but dont want to lose the watched flags. I've tried the the C flag but then i get other errors: Code: 11:44:25 T:2834297920 NOTICE: LoadJpeg: unable to load nfs://192.168.1.202/home/disk2/TV/2 Broke Girls/Season 03/2.Broke.Girls.S03E07.HD.TV.tbn I've verified the file and it does exist. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-11 At least you found the problem. I guess you'll need to confirm if those tbn files really are jpeg images, and replace them if not. RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-12 (2013-12-11, 13:05)kl1k Wrote: Another thing I've noticed is that some of the paths are incorrect. You'll need to fix your media library so that it is using the correct path for all the artwork. You can "dump" the media library ("jd movies" or "jd tvshows" etc.) and find all shows/episodes with references to the incorrect paths, then fix them via the GUI. Or try running a QA check: Code: ./texturecache.py qa tvshows @qa.fail.urls=+/home/disk1/ (2013-12-11, 13:05)kl1k Wrote: Is there a way to completely start over while keeping the flags of what episodes have been watched? As long as the names of your movies and tv shows remain the same before/after the library rescrape, you can backup then restore your watched status. Backup your watched statuses with: Code: ./texturecache.py watched movies backup movies.dat Trash and rescrape your library, then finally restore the watched statuses: Code: ./texturecache.py watched movies restore movies.dat (2013-12-11, 13:05)kl1k Wrote: I've tried the the C flag but then i get other errors: It's not that the file doesn't exist, is it actually a valid jpg? The xbmc errors you posted previously would suggest that several of your tbn files are not in fact valid jpeg files. Re: [RELEASE] Texture Cache Maintenance utility - redglory - 2013-12-13 Milhouse I think you probably should think of changing your script name because it does much more than just re-cache textures! Something on the lines of XBMC.Octopus RE: [RELEASE] Texture Cache Maintenance utility - Milhouse - 2013-12-13 Yeah, I wish I'd seen the future when I started this so that I could have chosen a more appropriate name but then I'd have bought lottery tickets too and probably never published a thing from my recently purchased Caribbean hideaway! RE: [RELEASE] Texture Cache Maintenance utility - akya - 2013-12-25 Hi.. First of all thanks for this fantastic script I have used this tool in windows and worked perfectly.. Now I have switched to linux completely.. Using the latest version of tool, python 2.7.5, Same xbmc build as was on windows and same size of media collection... But on linux, it's taking ages to just load movies and tvshows.. What may be the reason? I can provide any info that you want.. Edit: When I ran it again, looks like things are back to normal speed.. weird :p RE: [RELEASE] Texture Cache Maintenance utility - blurp76 - 2013-12-25 Hi, i have been using this amazing script in the past without any issues, but in the last days i tried it again and i keep getting this error.. Could it be some weird characted in my database? Code: atv@crystalbuntu:~$ ./texturecache.py c artists Last line in the log is: Code: 2013-12-25 21:21:10.538734:MainThread: EXECUTING SQL: SELECT t.id, t.cachedurl, t.lasthashcheck, t.url, s.height, s.width, s.usecount, s.lastusetime, s.size, t.imagehash FROM texture t JOIN sizes s ON (t.id = s.idtexture) I tried run this query in SQLite explorer but it returned no error.. Thanks! |