Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 11
  • 12
  • 13
  • 14(current)
  • 15
[RELEASE] - Thumbnails Cleaner v1.1.4
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
Reply
I have used this on 3 Firetv's SPMC 13.3.3 and windows gothom. Work great! Thanks for thr good work.
Reply
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.
Reply
(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
Reply
Is this currently working with Kodi 14.1?
Reply
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?
Reply
Will this still work with Isengard?
Reply
Hi

Great addon - really solves a problem that no one else has tried to solve. Good job.

One request - It would make sense to update the addon to allow it to run as a service, and once daily / weekly / monthly automatically clean the textures.

FFY
Reply
How about Isengard (Kodi 15.0)?
Does the tool work with this new version?

And another question:
What does the function "Empty"? Clearifying all thumsnails? If yes, will they be rescraped by Kodi again automatically or only if a new media source is added?
Reply
Hello, great addon Smile

I have a question, I use the following for my thumbs location:

Code:
<substitute>
    <from>special://profile/Thumbnails/</from>
    <to>F:\Kodi\userdata\Thumbnails\</to>
  </substitute>

In my advancedsettings.xml file so that I don't clutter up my SSD drive, the problem is that your addon doesn't seem to recognize it, My thumbnail folder is over 16 gigs in size and when I ran it, it didn't remove anything from this folder, just the default location (It seems that even with the settings in the advancedsettings.xml file, Kodi still uses the default location for some things) so it found 150 megs of images to delete, but only from the default location.
Would it be possible to set the main thumbnail location in the settings in a future update? Note my relocation is still on the same computer.

Thanks again for all the work!!

Edit: Or if you don't want to add such an option, could you point out the location in the script that may be able to be changed to the location I use, if that is possible?
My Madnox Mods | Nox Version Guide
---------------------------------------------------------------
Movie Logo Requests | Studio Logo Requests
Logo's Made So Far:
838
Reply
+1

Please consider this feature to the next version. Our SSD will be forever grateful
Reply
Hi all!

I've recently modified this wonderful addon and included the requested feature of considering advancedsettinsgs.xml for thumbnail folder redirection. Alongside that I redisegned part of the addon. Here are my mods:
- Switched to native dialogs
- Fixed a few captions
- Added option to skip dialog for selecting which textures to keep during cleanup
- Added option to decide which action to perform during cleanup (simulate delete, perform delete or move thumbnails)
- Icon changed for the script to adapt it to Kodi

Although it's marked 1.1.5, it's an unofficial version and all credit to the core addon goes to m4x1m. I'm talking with him on how to handle new updates, I will probably start a new, slightly broader addon (it should handle cleanup of settings of deleted addons and addon version rollback cleanup), but for the time being I thought you could enjoy the small improvements.

https://www.dropbox.com/s/58im6xo6vcbbrg...5.zip?dl=0
Reply
(2015-12-25, 11:58)zeppy Wrote: I've recently modified this wonderful addon ...
Great to hear! Will try your version out, and be on lookout for when you release your new addon with more options.

FFY
Reply
I installed the update, resetted the addon settings but get an error starting it under 15.2 on my Amazon Fire TV.

Log:
Code:
11:03:47 T:1776195768  NOTICE: Thread LanguageInvoker start, auto delete: false
11:03:47 T:1776195768  NOTICE: -->Python Interpreter Initialized<--
11:03:47 T:1776195768   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: _ElementInterface instance has no attribute 'iter'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/default.py", line 9, in <module>
                                                from resources.lib.tcCommon import *
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/resources/lib/tcCommon.py", line 33, in <module>
                                                for node in root.iter('substitute'):
                                            AttributeError: _ElementInterface instance has no attribute 'iter'
                                            -->End of Python script error report<--
11:03:51 T:1552870560  NOTICE: Thread LanguageInvoker start, auto delete: false
11:03:51 T:1552870560  NOTICE: -->Python Interpreter Initialized<--
11:03:52 T:1552870560   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: _ElementInterface instance has no attribute 'iter'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/default.py", line 9, in <module>
                                                from resources.lib.tcCommon import *
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/resources/lib/tcCommon.py", line 33, in <module>
                                                for node in root.iter('substitute'):
                                            AttributeError: _ElementInterface instance has no attribute 'iter'
                                            -->End of Python script error report<--
11:03:56 T:1948015224  NOTICE: Thread LanguageInvoker start, auto delete: false
11:03:56 T:1948015224  NOTICE: -->Python Interpreter Initialized<--
11:03:56 T:1948015224   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: _ElementInterface instance has no attribute 'iter'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/default.py", line 9, in <module>
                                                from resources.lib.tcCommon import *
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.thumbnailscleaner/resources/lib/tcCommon.py", line 33, in <module>
                                                for node in root.iter('substitute'):
                                            AttributeError: _ElementInterface instance has no attribute 'iter'
                                            -->End of Python script error report<--
Reply
push. any progress here?
Reply
  • 1
  • 11
  • 12
  • 13
  • 14(current)
  • 15

Logout Mark Read Team Forum Stats Members Help
[RELEASE] - Thumbnails Cleaner v1.1.44