YouTube Plugin Error

Hi everyone, since about 2 months ago my YouTube plugin is not running anymore. When I try to launch the plugin, it’s loading and says “Please wait…” as usual, but after a few seconds it stops and shows the message:

“YouTube Error:
Check log for more information.”

Here’s what the log says (I’m not sure which part of it is important, so I’m just pasting all the lines from the last few minutes when it happened):

11:43:31 480973.625000 T:2668811296  NOTICE: Previous line repeats 9 times.
11:43:31 480973.625000 T:2668811296  NOTICE: Thread BackgroundLoader start, auto delete: false
11:43:32 480974.156250 T:2668811296  NOTICE: Previous line repeats 1 times.
11:43:32 480974.156250 T:2668811296  NOTICE: Thread JobWorker start, auto delete: true
11:43:33 480974.937500 T:2579493920  NOTICE: Thread BackgroundLoader start, auto delete: false
11:43:33 480975.156250 T:2638214176  NOTICE: Previous line repeats 1 times.
11:43:33 480975.156250 T:2638214176  NOTICE: Thread JobWorker start, auto delete: true
11:43:34 480976.687500 T:2579493920  NOTICE: Previous line repeats 1 times.
11:43:34 480976.687500 T:2579493920  NOTICE: Thread LanguageInvoker start, auto delete: false
11:43:36 480978.656250 T:2579493920  NOTICE: Previous line repeats 2 times.
11:43:36 480978.656250 T:2579493920  NOTICE: -->Python Interpreter Initialized<--
11:43:40 480982.125000 T:2550133792  NOTICE: Previous line repeats 2 times.
11:43:40 480982.125000 T:2550133792  NOTICE: Thread BackgroundLoader start, auto delete: false
11:43:40 480982.343750 T:2550133792  NOTICE: Thread LanguageInvoker start, auto delete: false
11:43:42 480984.687500 T:2550133792  NOTICE: -->Python Interpreter Initialized<--
11:43:44 480986.718750 T:2579493920  NOTICE: Thread LanguageInvoker start, auto delete: false
11:43:47 480989.093750 T:2579493920  NOTICE: -->Python Interpreter Initialized<--
11:43:54 480996.531250 T:2579493920  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.9) on Isengard (15.1) with Python 2.7.9
11:43:55 480996.875000 T:2550133792  NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting GUI proc (6.0.14)
11:44:05 481007.281250 T:2579493920   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.DatabaseError'>
                                            Error Contents: database disk image is malformed
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 157, in _internal_root
                                                return self.on_root(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 487, in on_root
                                                self.get_client(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 101, in get_client
                                                context.get_function_cache().clear()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/function_cache.py", line 22, in clear
                                                self._clear()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            DatabaseError: database disk image is malformed
                                            -->End of Python script error report<--
11:44:05 481007.375000 T:3023671856   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/
11:44:05 481007.375000 T:3023671856   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed
11:44:05 481007.406250 T:2579493920  NOTICE: Thread BackgroundLoader start, auto delete: false
11:44:58 481060.375000 T:2569008160  NOTICE: Previous line repeats 2 times.
11:44:58 481060.375000 T:2569008160  NOTICE: Thread FileCache start, auto delete: false
11:45:14 481076.781250 T:2569008160  NOTICE: Thread BackgroundLoader start, auto delete: false
11:45:20 481082.562500 T:2569008160  NOTICE: Thread LanguageInvoker start, auto delete: false
11:45:20 481082.718750 T:2569008160  NOTICE: -->Python Interpreter Initialized<--
11:45:20 481082.750000 T:3023671856   ERROR: Control 500 in window 10025 has been asked to focus, but it can't
11:45:26 481088.375000 T:2569008160  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.9) on Isengard (15.1) with Python 2.7.9
11:45:37 481099.062500 T:2569008160   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.DatabaseError'>
                                            Error Contents: database disk image is malformed
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 157, in _internal_root
                                                return self.on_root(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 487, in on_root
                                                self.get_client(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 101, in get_client
                                                context.get_function_cache().clear()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/function_cache.py", line 22, in clear
                                                self._clear()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/storage.py", line 79, in _execute
                                                return self._cursor.execute(query, values)
                                            DatabaseError: database disk image is malformed
                                            -->End of Python script error report<--
11:45:37 481099.125000 T:3023671856   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/
11:45:37 481099.125000 T:3023671856   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed
11:45:37 481099.187500 T:2569008160  NOTICE: Thread BackgroundLoader start, auto delete: false
11:45:37 481099.343750 T:2569008160  NOTICE: Thread LanguageInvoker start, auto delete: false
11:45:37 481099.718750 T:2569008160  NOTICE: -->Python Interpreter Initialized<--
11:45:42 481104.281250 T:2569008160  NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting GUI proc (6.0.14)
11:46:21 481143.312500 T:2730390560  NOTICE: ES: Client  from 192.168.0.10 timed out

Noone? :\

You really need to get support for addon bugs directly from the addon author - it’s up to them to fix bugs in their own addons and keep them up to date with current versions of Kodi.

Over in the kodi.tv forum there is a subsection for support for most of the addons that are available for Kodi:

http://forum.kodi.tv/forumdisplay.php?fid=27

When looking for the correct section, keep in mind that there are two different Youtube addons available for Kodi with different authors.

Thanks for pointing that out!
Didn’t know there were 2 youtube addons available. Only know the one from bromix. Could you tell me what’s the other one? Maybe that one would work.

Bromix is what you want. The previous was deprecated for lack of support.