[RELEASE] - Thumbnails Cleaner v1.1.4

  Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
m4x1m Offline
Fan
Posts: 322
Joined: Mar 2011
Reputation: 23
Location: Italy
Post: #196
Download from GoogleDrive
script.thumbnailscleaner-1.1.4.zip

Download & Install my unofficial XBMC repository
repository.m4x1m.zip

Code:
v1.1.4.
- Icon changed for the script.
- Fixed issues related to the paths of database and thumbnails.

LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
find quote
Tight_wad Offline
Fan
Posts: 428
Joined: Oct 2010
Reputation: 4
Post: #197
I have used this on 3 Firetv's SPMC 13.3.3 and windows gothom. Work great! Thanks for thr good work.
find quote
mac1202 Offline
Junior Member
Posts: 15
Joined: Aug 2014
Reputation: 0
Post: #198
I try your addon just a little problem i use advanced launcher for emulation purpose, and your addon remove all my game thumbnail and artwork + all my addon icon. Even when i check dont check addon in the option.
find quote
m4x1m Offline
Fan
Posts: 322
Joined: Mar 2011
Reputation: 23
Location: Italy
Post: #199
(2015-01-25 12:29)mac1202 Wrote:  I try your addon just a little problem i use advanced launcher for emulation purpose, and your addon remove all my game thumbnail and artwork + all my addon icon. Even when i check dont check addon in the option.

This type of images are not in the kodi database, you can add an extra voice in the pattern option in the addon settings like the folder name that contains the thumbs and icons of your games.
The script will exclude from the check all images that have the chosen pattern in his path.

LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
find quote
spchtr Offline
Junior Member
Posts: 35
Joined: Dec 2011
Reputation: 1
Post: #200
Is this currently working with Kodi 14.1?
find quote
Foldman Offline
Junior Member
Posts: 1
Joined: Apr 2015
Reputation: 0
Post: #201
Hi there Max,

First off thanks for your hard work in making this addon, its something that no user should do without.

I have installed version 1.1.4 on my Raspbmc running Helix.
The script starts fine even without setting a folder to move the found obsolete images.

screen says:
Before:
18082 Files
609mb Size
Textures 17944

I let the script run for 4 hours then checked and it was still working through my setup.
After 9 hours it was still running so i decided to get some sleep and let it run.
(Note that it was not stalled or broken, i could see percentages go up and the script going through images urls)

This morning Kodi was back on my startpage Movies (while It was in system -> addons when script was running)
I rerun the addon and it still says:

Before:
18082 Files
609mb Size
Textures 17944

kodi.log reads:

Code:
09:33:42 T:2714694720  NOTICE: [Thumbnails Cleaner] - Starting Thumbnails Cleaner v1.1.4
09:33:42 T:2678060096  NOTICE: Thread LanguageInvoker start, auto delete: false
09:33:43 T:2678060096  NOTICE: -->Python Interpreter Initialized<--
09:33:43 T:2678060096 WARNING: CPythonInvoker(13): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
09:34:24 T:2678060096  NOTICE: [Thumbnails Cleaner] - Database folder selected: /home/pi/.kodi/userdata/Database/
09:34:24 T:2678060096  NOTICE: [Thumbnails Cleaner] - Thumbnails folder selected: /home/pi/.kodi/userdata/Thumbnails/
09:36:34 T:2706306112  NOTICE: Thread JobWorker start, auto delete: true
09:36:38 T:2706306112   ERROR: Unable to lookup host: ''
09:36:38 T:2706306112   ERROR: NFS: Failed to mount nfs share:  (nfs_mount_async failed)
09:38:06 T:2678060096  NOTICE: Thread LanguageInvoker start, auto delete: false
09:38:06 T:2706306112  NOTICE: Thread JobWorker start, auto delete: true
09:38:07 T:2678060096  NOTICE: -->Python Interpreter Initialized<--
09:38:09 T:2678060096  NOTICE: Thread JobWorker start, auto delete: true
09:39:08 T:3029550144  NOTICE: Previous line repeats 5 times.
09:39:08 T:3029550144  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
09:39:11 T:2706306112  NOTICE: Thread BackgroundLoader start, auto delete: false

I dont see a reboot in the logs. What could be wrong?

Also can you explain the settings of the addon? What can I put in at Query?
I want to see if I can skip some scans to speed up this process. Quick win will be to get rid of all images without a lasthashcheck in Textures13.db

UPDATE:
Today I tried again this time with a path of my NAS to dump the files.
It scanned for about 11 Hours, then it was done. When I start it again its still the same size (nothing was removed)
Log reads:
Code:
01:58:45 T:2622035008  NOTICE: [Thumbnails Cleaner] - Starting Thumbnails Cleaner v1.1.4
01:58:45 T:2651845696  NOTICE: Thread LanguageInvoker start, auto delete: false
01:58:46 T:2651845696  NOTICE: -->Python Interpreter Initialized<--
01:58:46 T:2651845696 WARNING: CPythonInvoker(37): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
01:59:33 T:3029550144  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
01:59:36 T:2651845696  NOTICE: [Thumbnails Cleaner] - Database folder selected: /home/pi/.kodi/userdata/Database/
01:59:36 T:2651845696  NOTICE: [Thumbnails Cleaner] - Thumbnails folder selected: /home/pi/.kodi/userdata/Thumbnails/
02:00:09 T:2651845696  NOTICE: [Thumbnails Cleaner] - The cleaning was started at 2015-04-02 02:00:02
02:00:18 T:3037945856  NOTICE: NFS is idle. Closing the remaining connections.
02:01:07 T:2651845696  NOTICE: [Thumbnails Cleaner] - *** Reading data for the movies ***
02:01:07 T:2651845696  NOTICE: [Thumbnails Cleaner] - Sending JSON query. Please wait...
02:01:10 T:2651845696  NOTICE: [Thumbnails Cleaner] - Found 262 movies in the database
02:01:12 T:2651845696  NOTICE: [Thumbnails Cleaner] - Removing duplicate elements from JSON query
02:01:12 T:2651845696  NOTICE: [Thumbnails Cleaner] - Comparing 433 images to exclude files
02:12:36 T:2630423616  NOTICE: Thread JobWorker start, auto delete: true
02:50:39 T:2651845696  NOTICE: Previous line repeats 1 times.
02:50:39 T:2651845696  NOTICE: [Thumbnails Cleaner] - *** Reading data for the collections ***
02:50:39 T:2651845696  NOTICE: [Thumbnails Cleaner] - Sending JSON query. Please wait...
02:50:41 T:2651845696  NOTICE: [Thumbnails Cleaner] - Found 81 collections in the database
02:50:42 T:2651845696  NOTICE: [Thumbnails Cleaner] - Removing duplicate elements from JSON query
02:50:42 T:2651845696  NOTICE: [Thumbnails Cleaner] - Comparing 162 images to exclude files
02:54:05 T:2630423616  NOTICE: Thread JobWorker start, auto delete: true
03:08:33 T:2651845696  NOTICE: Previous line repeats 1 times.
03:08:33 T:2651845696  NOTICE: [Thumbnails Cleaner] - *** Reading data for the tv shows ***
03:08:33 T:2651845696  NOTICE: [Thumbnails Cleaner] - Sending JSON query. Please wait...
03:08:35 T:2651845696  NOTICE: [Thumbnails Cleaner] - Found 67 tv shows in the database
03:08:35 T:2651845696  NOTICE: [Thumbnails Cleaner] - Removing duplicate elements from JSON query
03:08:35 T:2651845696  NOTICE: [Thumbnails Cleaner] - Comparing 174 images to exclude files
03:21:39 T:2630423616  NOTICE: Thread JobWorker start, auto delete: true
03:27:02 T:2651845696  NOTICE: [Thumbnails Cleaner] - *** Reading data for the seasons ***
03:27:04 T:2651845696  NOTICE: [Thumbnails Cleaner] - Found 1 seasons in ABC
03:29:24 T:2651845696  NOTICE: [Thumbnails Cleaner] - Removing duplicate elements from JSON query
03:29:24 T:2651845696  NOTICE: [Thumbnails Cleaner] - Comparing 71 images to exclude files
03:36:44 T:2651845696  NOTICE: [Thumbnails Cleaner] - *** Reading data for the episodes ***
03:36:45 T:2651845696  NOTICE: [Thumbnails Cleaner] - Found 9 episodes in EFG
03:37:44 T:2651845696  NOTICE: [Thumbnails Cleaner] - Removing duplicate elements from JSON query
03:37:44 T:2651845696  NOTICE: [Thumbnails Cleaner] - Comparing 929 images to exclude files
03:42:35 T:2731471936  NOTICE: Thread VideoInfoScanner start, auto delete: false
03:42:35 T:2731471936  NOTICE: VideoInfoScanner: Starting scan ..

Why are there no errors but also nothing cleaned? on the target directory on my NAS there are also no files made? BACKUP addon writes to same folder so its not insufficient rights on destination folder).
Also strange that the log does not show any entries after 3:37 AM since when i checked at 10:00 AM it was still running.. might the auto update library feature break the script?
(This post was last modified: 2015-04-02 12:25 by Foldman.)
find quote
DarkHelmet Offline
Fan
Posts: 499
Joined: Jul 2008
Reputation: 1
Location: Hamburg, Germany
Post: #202
Will this still work with Isengard?
find quote
Post Reply