Kodi Community Forum
Clean up the Thumbnails folder - 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: Clean up the Thumbnails folder (/showthread.php?tid=96097)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


- sjw1 - 2011-04-05

Thanks again. Within the log, for each set, it says for example
Code:
This appears to be a movie set named "ABCD", getting all videos inside it at: "videodb://1/7/1/"
and then text in between - and ends with something like
Code:
Found 3 movies in movie set named "ABCD"
Would this section suffice?
Below anyway:
Code:
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   This appears to be a movie set named "ABCD", getting all videos inside it at: "videodb://1/7/1/"
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   JSON-RPC Command = {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory":"videodb://1/7/1/"}, "id": "1"}
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Connecting to JSON-RPC at localhost:9090
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Connected, now sending command: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory":"videodb://1/7/1/"}, "id": "1"}
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Command sent successfully
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Reading response from XBMC
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   No more data received in the last 169 milliseconds, closing JSON-RPC socket.
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Socket closed successfully
04/05/2011 07:21:43 PM DEBUG   JSON-RPC:Video   Found 3 movies in movie set named "ABCD"
Between the two lines you have asked for there are no other mentions of ABCD.


- bradvido88 - 2011-04-05

Search your log for all instances of
Code:
videodb://1/7/1/

Find a line that looks something like:
Code:
JSON-RPC thumbnail hash (xxxxxxxx) added from videodb://1/7/1/

If you don't find it, then I have a bug.


- sjw1 - 2011-04-05

In the complete log the only similar line is:
Code:
JSON-RPC fanart hash (ffffffff) added from videodb://1/7/1/
There is not one for thunmbnail hash.
i.e. there are 4 mentions of the videodb://1/7/1/ text - the three in my code earlier and this one.

Hope that helps.


v1.1 - bradvido88 - 2011-04-07

I have updated this to version 1.1 (see 2nd post in this thread)

Significant changes:
  • Better handling of Movie sets
  • Uses textures.db to clean ALL thumbnails (not just library thumbs/fanart as in v1.0)
  • Option to check if files in XBMC's database really do exist on the filesystem, and delete their images if they don't exist.
Overall, this means that you will be able to clean out more unused images and save more space than in v1.0!

The XML config file has changed a bit, so you can't use your v1.0 config file. Please update the one in the v1.1 download.

Let me know if there are any issues.

If you're not running in simulation mode, always backup your entire thumbnails directory and textures.db before running this program! I can't guarantee this program is perfect Smile


- sjw1 - 2011-04-08

Many thanks bravido - I still have my movie set thumbs. Smile
Works great!


- sjw1 - 2011-04-26

I ran this the other day (24th) but didn't check anything afterwards. Just checked and noticed my movieset thumbs were gone again. Confused I thought I must have run the old version by mistake. I just re-associated them all and ran it again (1.1) - and my movieset thumbs have indeed been deleted again.. Eek...


- bradvido88 - 2011-04-26

Are you running XBMC 10.1?


- sjw1 - 2011-04-26

bradvido88 Wrote:Are you running XBMC 10.1?
Yes. But THOUGHT I was on it when we were doing the de-bugging last time?


- m4x1m - 2011-04-27

sjw1 Wrote:I ran this the other day (24th) but didn't check anything afterwards. Just checked and noticed my movieset thumbs were gone again. Confused I thought I must have run the old version by mistake. I just re-associated them all and ran it again (1.1) - and my movieset thumbs have indeed been deleted again.. Eek...

Me too! I running the latest PVR version from Lars Op den Kamp PPA!


- darkzu - 2011-05-01

after a few fails, works great reduced the size by more than half, and it didnt deleted any wrong images! thanks you!!


- bradvido88 - 2011-05-01

It only works with 10.0 and 10.1


- sjw1 - 2011-05-01

bravido, any idea why it's deleting images again? Could it be to do with how long they've been accessed since? Anything to do with textures.db?
1.0 deleted images incorrectly.
1.1 worked OK
1.1 started to delete them again when run weeks later. Huh


- bradvido88 - 2011-05-03

sjw1 Wrote:bravido, any idea why it's deleting images again? Could it be to do with how long they've been accessed since? Anything to do with textures.db?
1.0 deleted images incorrectly.
1.1 worked OK
1.1 started to delete them again when run weeks later. Huh
Hmmm... Not sure what's going on. I use it regularily without any problems.
You do have to use XBMC 10.0 or 10.1, as the new JSON-RPC changes in the nightlies will break things.

What images are getting deleted. If it is movie/tv show fanart and thumbnails, then that has nothing to do with textures.db


- sjw1 - 2011-05-03

It's just the movieset thumbs again...


- bradvido88 - 2011-05-03

sjw1 Wrote:It's just the movieset thumbs again...
If you using XBMC stable 10.0 or 10.1, then version 1.1 of this program should handle movie set thumbs correctly.
Is it possible that you somehow ran v 1.0 of this program by accident?
Otherwise, I'll see a log, similar to last time. Run the program in DEBUG, and post any lines that contain "videodb://" Then I'll be able to diagnose it properly.