Clean up the Thumbnails folder

  Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ppic Offline
Skilled Python Coder
Posts: 2,663
Joined: Feb 2009
Reputation: 10
Location: France idf
Post: #11
queeup Wrote:Yes, come on guys send your Thumb clean codes. I want to use it Smile

@ppic come on write one for us with python also Big Grin

you're better in python than me here Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
queeup Online
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #12
No waaay, i think you are more lazy then me Wink
(This post was last modified: 2011-03-08 16:15 by queeup.)
find quote
ppic Offline
Skilled Python Coder
Posts: 2,663
Joined: Feb 2009
Reputation: 10
Location: France idf
Post: #13
the simplest way i see here:
make a list of used thumb.
compare for each thumbs found in thumbnail folder if present in the list, if not, then delete it.
this means it have to list all used thumb ( addon icon for example)
at least, except library content thumb, all other used thumb will be regenerated by xbmc.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #14
As soon as video and music thumbs are transferred to the texture cache I'll work on adding the cleanup side of things.

Others are welcome to work on the cleanup side of things if you like - basically just open the Textures.db file and take a look at what we have - we have last used and use count available, so we can easily purge at various points (and ofcourse they'll be automatically re-cached if used again Smile

Good strategies for purging need to be dreamt up - I'm sure you guys can take care of that. Obviously these apply only to addons, pictures etc. at this point (i.e. not music or video thumbs).

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,663
Joined: Feb 2009
Reputation: 10
Location: France idf
Post: #15
jmarshall Wrote:As soon as video and music thumbs are transferred to the texture cache I'll work on adding the cleanup side of things.

Others are welcome to work on the cleanup side of things if you like - basically just open the Textures.db file and take a look at what we have - we have last used and use count available, so we can easily purge at various points (and ofcourse they'll be automatically re-cached if used again Smile

Good strategies for purging need to be dreamt up - I'm sure you guys can take care of that. Obviously these apply only to addons, pictures etc. at this point (i.e. not music or video thumbs).

Cheers,
Jonathan

old habits, i forgot about texture.db !

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
bradvido88 Offline
Member+
Posts: 736
Joined: Nov 2008
Reputation: 7
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 (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
find quote
bradvido88 Offline
Member+
Posts: 736
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #17
See 2nd post for my script.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
find quote
tboooe Offline
Fan
Posts: 463
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
Member+
Posts: 736
Joined: Nov 2008
Reputation: 7
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 (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
find quote
tboooe Offline
Fan
Posts: 463
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
Post Reply