Release Visual Thumbs - (Create thumbs for subfolders in picture library)
#67
Hi DaLanik

Thanks for the add-on, really looking forward to populating my thumbnails if I can get this error fixed.  My photo folders contain some files that are not photos, I think they're put there by some 3rd party apps I use to sync my photo library to a backup device.  As soon as it sees one it crashes out.

Is there any way to skip files that are not jpg?

2019-10-01 10:18:31.243 T:2496   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: cannot identify image file <open file u'\\\\kryten\\photo albums\\Adam's Photos and Videos\\.sync\\IgnoreList', mode 'rb' at 0x0000015057163270>
                                            Traceback (most recent call last):
                                              File "C:\Users\winmedia\AppData\Roaming\Kodi\addons\script.visual_thumbs\addon.py", line 519, in <module>
                                                intCancel = scanPaths(path, g, pathsNr, 3)
                                              File "C:\Users\winmedia\AppData\Roaming\Kodi\addons\script.visual_thumbs\addon.py", line 286, in scanPaths
                                                MakeTumbs(filesInTree2, absolutePath)
                                              File "C:\Users\winmedia\AppData\Roaming\Kodi\addons\script.visual_thumbs\addon.py", line 149, in MakeTumbs
                                                thumb = get_image(randomList[0], size=120)
                                              File "C:\Users\winmedia\AppData\Roaming\Kodi\addons\script.visual_thumbs\addon.py", line 82, in get_image
                                                image = Image.open(open(imageFileName, 'rb'))
                                              File "C:\Program Files\Kodi\system\python\lib\site-packages\PIL\Image.py", line 2519, in open
                                                % (filename if filename else fp))
                                            IOError: cannot identify image file <open file u'\\\\kryten\\photo albums\\Adam's Photos and Videos\\.sync\\IgnoreList', mode 'rb' at 0x0000015057163270>
                                            -->End of Python script error report<--
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 15:02
RE: Visual Thumbs - by DaLanik - 2016-06-24, 15:04
RE: Visual Thumbs - by DaLanik - 2016-06-24, 15:06
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 15:14
RE: Visual Thumbs - by DaLanik - 2016-06-24, 15:43
RE: Visual Thumbs - by DaLanik - 2016-06-24, 16:00
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 16:12
RE: Visual Thumbs - by DaLanik - 2016-06-25, 18:24
RE: Visual Thumbs - by DaLanik - 2016-06-25, 19:06
RE: Visual Thumbs - by peppe_sr - 2016-06-25, 21:13
RE: Visual Thumbs - by DaLanik - 2016-06-26, 12:26
RE: Visual Thumbs - by DaLanik - 2016-06-26, 17:31
RE: Visual Thumbs - by peppe_sr - 2016-06-27, 10:05
RE: Visual Thumbs - by DaLanik - 2016-06-27, 13:35
RE: Visual Thumbs - by peppe_sr - 2016-06-27, 15:30
RE: Visual Thumbs - by DaLanik - 2016-06-27, 23:49
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 07:46
RE: Visual Thumbs - by DaLanik - 2016-06-28, 08:46
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 08:52
RE: Visual Thumbs - by DaLanik - 2016-06-28, 09:55
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 10:03
RE: Visual Thumbs - by DaLanik - 2016-06-28, 14:37
RE: Visual Thumbs - by DaLanik - 2016-06-28, 22:15
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 09:59
RE: Visual Thumbs - by DaLanik - 2016-06-29, 10:29
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 10:41
RE: Visual Thumbs - by DaLanik - 2016-06-29, 15:35
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 16:01
RE: Visual Thumbs - by DaLanik - 2016-06-29, 20:04
RE: Visual Thumbs - by DaLanik - 2016-06-29, 23:43
RE: Visual Thumbs - by peppe_sr - 2016-06-30, 07:59
RE: Visual Thumbs - by peppe_sr - 2016-06-30, 09:19
RE: Visual Thumbs - by DaLanik - 2016-07-06, 21:21
RE: Visual Thumbs - by DaLanik - 2016-07-01, 14:54
RE: Visual Thumbs - by DaLanik - 2016-07-08, 11:43
RE: Visual Thumbs - by peppe_sr - 2016-07-08, 11:58
RE: Visual Thumbs - by DaLanik - 2016-07-21, 09:59
RE: Visual Thumbs - by Atreyu - 2016-07-22, 00:18
RE: Visual Thumbs - by DaLanik - 2016-07-22, 08:21
RE: Visual Thumbs - by DaLanik - 2016-07-22, 21:21
RE: Visual Thumbs - by DaLanik - 2016-07-29, 13:42
RE: Visual Thumbs - by DaLanik - 2016-07-31, 12:42
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 09:44
RE: Visual Thumbs - by DaLanik - 2016-08-01, 10:40
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 11:45
RE: Visual Thumbs - by DaLanik - 2016-08-01, 13:10
RE: Visual Thumbs - by DaLanik - 2016-08-01, 14:39
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 15:26
RE: Visual Thumbs - by DaLanik - 2016-08-01, 18:43
RE: Visual Thumbs - by DaLanik - 2016-08-01, 19:57
RE: Visual Thumbs - by peppe_sr - 2016-08-02, 09:33
RE: Visual Thumbs - by DaLanik - 2016-08-02, 10:47
RE: Visual Thumbs - by DaLanik - 2016-08-03, 14:46
RE: Visual Thumbs - by DaLanik - 2016-09-24, 12:44
RE: Visual Thumbs - by DaLanik - 2016-10-05, 14:49
RE: Visual Thumbs - by DaLanik - 2016-11-25, 19:15
RE: Visual Thumbs - (Create thumbs for subfolders in picture library) - by warrencalvert - 2019-10-01, 11:44


Logout Mark Read Team Forum Stats Members Help
Visual Thumbs - (Create thumbs for subfolders in picture library)00