Clean up the Thumbnails folder

  Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bradvido88 Offline
Donor
Posts: 793
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #16
Correct me if I'm wrong, but I believe textures.db doesn't currently store the thumbs/fanart from the video/audio libraries, so it's not much use to me looking to clean those images up.

Most of my images reside in Thumbnails/Video and Thumbnails/Music. I'll post my cleaner when i get a chance. It seems to be working well.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
bradvido88 Offline
Donor
Posts: 793
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #17
See 2nd post for my script.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
tboooe Offline
Fan
Posts: 456
Joined: Dec 2010
Reputation: 0
Post: #18
bradvido88 Wrote:See 2nd post for my script.

YOU RULE!! I am excited to test this out tonight.
find quote
bradvido88 Offline
Donor
Posts: 793
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #19
Also, if a moderator feels this thread would be more appropriate in the "Supplemental Tools for XBMC", go ahead and move it.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
tboooe Offline
Fan
Posts: 456
Joined: Dec 2010
Reputation: 0
Post: #20
bradvid088...just wanted to say thanks for this great app! It found almost 5k images totally 330mb. I intend to us this regularly. Thank you again!!!!
find quote
paul Offline
Posting Freak
Posts: 2,769
Joined: Oct 2008
Reputation: 5
Location: Planet Earth
Post: #21
Its a shame xbmc cant do this when you use Clean library.
But thanks for your hard work doing this

XBMC Frodo 12 - Windows 7 - Asrock Ion 330HT - Aeon Nox
find quote
kri kri Offline
Senior Member
Posts: 221
Joined: Sep 2008
Reputation: 0
Post: #22
If I store my thumbnails on a server share since I use mysql, would this tool work?

[Image: all-thin-fanart.jpg]
find quote
bradvido88 Offline
Donor
Posts: 793
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #23
kri kri Wrote:If I store my thumbnails on a server share since I use mysql, would this tool work?
Yes, that's the same type of set-up I use.
You get to specify exactly where your thumbnail folder is.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
Philmatic Offline
Fan
Posts: 449
Joined: Nov 2009
Reputation: 0
Location: Santa Barbara, CA
Post: #24
Kept getting errors when trying to connect to my MySQL db:

Code:
03/17/2011 04:16:36 PM ERROR   Init...
MYSQL connection exception: URLDecoder: Incomplete trailing escape (%) pattern
    java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
        at java.net.URLDecoder.decode(Unknown Source)
        at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:605)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:277)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at utilities.DBConnection.setStandardConnection(DBConnection.java:99)
        at utilities.DBConnection.<init>(DBConnection.java:25)
        at utilities.XBMCInterface.<init>(XBMCInterface.java:37)
        at utilities.Config.loadConfig(Config.java:309)
        at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
        at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)

It's because my password has a '%' in it, so I had to replace it with the escaped character: %25

Living Room: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Bedroom: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Home Office: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Windows Home Server: Intel Core i3-2100T / 8GB Ram / 32TB / MySQL / StableBit DrivePool on WHS 2011
find quote
Philmatic Offline
Fan
Posts: 449
Joined: Nov 2009
Reputation: 0
Location: Santa Barbara, CA
Post: #25
Nicely done!

Before: 564MB and 12,019 files
After: 449MB and 8,072 files

Living Room: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Bedroom: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Home Office: AppleTV 1st Gen / Broadcom CrystalHD / XBMC 12.3 Frodo on Crystalbuntu 2.0
Windows Home Server: Intel Core i3-2100T / 8GB Ram / 32TB / MySQL / StableBit DrivePool on WHS 2011
find quote
bionic1234 Offline
Senior Member
Posts: 206
Joined: Oct 2006
Reputation: 0
Post: #26
This script is exactly what I've been looking for, THANKS!
find quote
PatK Offline
Donor
Posts: 3,311
Joined: Mar 2010
Reputation: 75
Location: Canada
Star   
Post: #27
I come up with this error... "Unable to access jarfile dist\XBMC.MyLibrary.jar"

Is this cmd executed in a specific folder or do I have to put these files in a lib somewhere? Ok never mind... edited the cmd file
Was at 10.32 gigs now down to 7.25 gigs at least it's a start.
(This post was last modified: 2011-03-21 22:34 by PatK.)
find quote
bradvido88 Offline
Donor
Posts: 793
Joined: Nov 2008
Reputation: 9
Location: MN
Post: #28
PatK Wrote:Is this cmd executed in a specific folder or do I have to put these files in a lib somewhere?
Should be executed in the same folder that you extract the zip to.
What OS are you using. Are you running the .cmd directly or scheduling it somehow?

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
find quote
PatK Offline
Donor
Posts: 3,311
Joined: Mar 2010
Reputation: 75
Location: Canada
Star   
Post: #29
bradvido88 Wrote:Should be executed in the same folder that you extract the zip to.
What OS are you using. Are you running the .cmd directly or scheduling it somehow?
Thanks for the fast reply... I edited my message as soon as I saw the solution... but you were quicker Smile

I edited the cmd file and it ran well... I was hoping for better, but saving 3.5 gigs is nice.. this really should be in the XBMC cleanup tools.
find quote
rudeboyx Offline
Posting Freak
Posts: 750
Joined: Dec 2007
Reputation: 0
Location: Burnley, UK
Post: #30
Thank god someone has finally addressed this issue.

just one thing before I test this.

I have recently used a similar script for xbmc4xbox which did the job but it also removed my "season" posters leaving the shows banner thumbnail to be squashed into all my season poster icons.

this thread has plenty of success stories, but can anyone confirm weather or not their are any issues with the script similar to my XBMC4xbox issue.

Thanks in advance

RBX

PS. I will be using this on my win7 version not the xbox (just before anyone chirps up)
find quote
Post Reply