[RELEASE] Texture Cache Maintenance utility
Hi @millhouse

I've recently started using TextureCache for artwork etc refreshes (my script which is run nightly is at the end of this thread).

I've noticed that every 3-4th night, Krypton nightlies are crashing while TextureCache is running. Below is the end of the log:

Code:
04:09:15 T:19624   ERROR: Previous line repeats 1 times.
04:09:15 T:19624  NOTICE: VideoInfoScanner: Starting scan ..
04:09:16 T:19624   ERROR: XFILE::CDirectory::GetDirectory - Error getting
04:09:16 T:19624  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
04:09:20 T:18736  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Krypton (17.0) with Python 2.7.11
04:09:21 T:12344  NOTICE: Previous line repeats 3 times.
04:09:21 T:12344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: database is locked
                                            Traceback (most recent call last):
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 392, in _on_yt_specials
                                                return yt_specials.process(category, self, context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_specials.py", line 229, in process
                                                client = provider.get_client(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 104, in get_client
                                                context.get_function_cache().clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\function_cache.py", line 22, in clear
                                                self._clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            OperationalError: database is locked
                                            -->End of Python script error report<--
04:09:22 T:20372  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Krypton (17.0) with Python 2.7.11
04:09:31 T:19056  NOTICE: Previous line repeats 1 times.
04:09:31 T:19056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: database is locked
                                            Traceback (most recent call last):
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 392, in _on_yt_specials
                                                return yt_specials.process(category, self, context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_specials.py", line 229, in process
                                                client = provider.get_client(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 104, in get_client
                                                context.get_function_cache().clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\function_cache.py", line 22, in clear
                                                self._clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            OperationalError: database is locked
                                            -->End of Python script error report<--
04:09:31 T:16492  NOTICE: VideoInfoScanner: Starting scan ..
04:09:32 T:20372   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: database is locked
                                            Traceback (most recent call last):
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 392, in _on_yt_specials
                                                return yt_specials.process(category, self, context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_specials.py", line 229, in process
                                                client = provider.get_client(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 104, in get_client
                                                context.get_function_cache().clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\function_cache.py", line 22, in clear
                                                self._clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            OperationalError: database is locked
                                            -->End of Python script error report<--
04:09:32 T:5136   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.youtube/special/popular_right_now/?page=3&page_token=CCgQAA
04:09:32 T:5136   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/special/popular_right_now/?page=3&page_token=CCgQAA) failed
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultNetwork.png'
04:09:32 T:16492   ERROR: Previous line repeats 2 times.
04:09:32 T:16492   ERROR: XFILE::CDirectory::GetDirectory - Error getting
04:09:32 T:16492  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonVideo.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultInProgressShows.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultVideoPlaylists.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedEpisodes.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMovies.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultRecentlyAddedMusicVideos.png'
04:09:32 T:5136   ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultTVShows.png'
04:09:33 T:16628  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Krypton (17.0) with Python 2.7.11
04:09:38 T:16352  NOTICE: Previous line repeats 3 times.
04:09:38 T:16352  NOTICE: VideoInfoScanner: Starting scan ..
04:09:40 T:16352   ERROR: XFILE::CDirectory::GetDirectory - Error getting
04:09:40 T:16352  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:01
04:09:40 T:15548  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Krypton (17.0) with Python 2.7.11
04:09:44 T:3380  NOTICE: Previous line repeats 2 times.
04:09:44 T:3380   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: database is locked
                                            Traceback (most recent call last):
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 392, in _on_yt_specials
                                                return yt_specials.process(category, self, context, re_match)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_specials.py", line 229, in process
                                                client = provider.get_client(context)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 104, in get_client
                                                context.get_function_cache().clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\function_cache.py", line 22, in clear
                                                self._clear()
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "C:\Users\User User\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\kodion\utils\storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            OperationalError: database is locked
                                            -->End of Python script error report<--
04:09:45 T:16352  NOTICE: VideoInfoScanner: Starting scan ..
04:09:45 T:16352   ERROR: XFILE::CDirectory::GetDirectory - Error getting
04:09:45 T:16352  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
04:09:46 T:14932  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Krypton (17.0) with Python 2.7.11


I'm sure it's a Krypton issue, but thought to ask...

Below is my script:
Code:
REM Perform QA
C:\Programs\Scripts\Kodi_TextureCache\texturecache.py qax @qa.nfo.refresh=3

REM Fix the art cache for movies
C:\Programs\Scripts\Kodi_TextureCache\texturecache.py jd movies | C:\programs\Scripts\Kodi_TextureCache\tools\mklocal.py --local "M:\My Videos\Movies" --prefix "smb://TOWER/Multimedia/My Videos/Movies" --artwork fanart poster clearlogo clearart --output C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_Movies.dat
type C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_Movies.dat | C:\Programs\Scripts\Kodi_TextureCache\texturecache.py set

REM Fix the art cache for movie sets
C:\Programs\Scripts\Kodi_TextureCache\texturecache.py jd sets | C:\programs\Scripts\Kodi_TextureCache\tools\mklocal.py --local "M:\My Videos\Movies" --prefix "smb://TOWER/Multimedia/My Videos/Movies" --artwork fanart poster clearlogo clearart --output C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_Sets.dat
type C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_Sets.dat | C:\Programs\Scripts\Kodi_TextureCache\texturecache.py set

REM Fix the art cache for TV Shows
C:\Programs\Scripts\Kodi_TextureCache\texturecache.py jd tvshows | C:\programs\Scripts\Kodi_TextureCache\tools\mklocal.py --local "M:\My Videos\Television" --prefix "smb://UserCPU/My Videos/Television" --artwork fanart poster clearlogo clearart --season --output C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_TV.dat
type C:\Programs\Scripts\Kodi_TextureCache\Fix_Kodi_Art_TV.dat | C:\Programs\Scripts\Kodi_TextureCache\texturecache.py set
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by edrikk - 2016-09-17, 22:14
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617