Kodi Community Forum

Full Version: YouTube (IMPORTANT - READ FIRST POST)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2015-09-17, 00:33)bluethor Wrote: [ -> ]
(2015-09-16, 22:22)pibtt Wrote: [ -> ]I'm not logged in. I don't evan have a youtube account
this add-on requires for you to have an account, I believe

It works just fine without one the only problem is that the video list isn't updated.
Hi, youtube-addon crashes when I try to run it.

database is locked?

Code:
11:00:42 T:140466691729152  NOTICE: -->Python Interpreter Initialized<--
11:00:42 T:140466691729152  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.8) on Isengard (15.1) with Python 2.7.6
11:00:46 T:140467431507904   ERROR: Control 550 in window 10025 has been asked to focus, but it can't
11:00:52 T:140466691729152   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 "/home/user/.kodi/addons/plugin.video.youtube/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "/home/user/.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/user/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 487, in on_root
                                                self.get_client(context)
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 101, in get_client
                                                context.get_function_cache().clear()
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/function_cache.py", line 22, in clear
                                                self._clear()
                                              File "/home/user/.kodi/addons/plugin.video.youtube/resources/lib/kodion/utils/storage.py", line 150, in _clear
                                                self._execute(True, query)
                                              File "/home/user/.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<--
11:00:52 T:140467431507904   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/
11:00:52 T:140467431507904   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed
11:00:52 T:140466691729152  NOTICE: Thread BackgroundLoader start, auto delete: false

How can I fix this? I have tried reboot and re-install the plugin, without success.

Thanks in advance for any advice!
There is a well knwon bug which seems also to be the reason why for me YouTube is not working: https://gist.github.com/aerickson/f15133a7e56b2d7f27e3 . I looked in my Kodi.log file and it said that SSL error(35) happened from curl. This problem is a known incompatibility. more recent version of curl disables the RC4 cypher for SSL, which is needed by YouTube. I am now trying to fix that by editing the Phyton code for the YouTube plugin....
I'm still frequently running out of quota on searches. This now happens every day, usually starting around 9PM or so.
Today (06:10 AM) when trying to search on YT error occurred Daily Limit Exceeded or Request cannot be completed... :
Code:
06:14:21 T:152   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.youtube/kodion/search/query/?q=vocoder
06:14:21 T:152   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/kodion/search/query/?q=vocoder) failed
06:14:21 T:1832  NOTICE: Thread XBPyThread start, auto delete: false
06:14:21 T:1832  NOTICE: -->Python Interpreter Initialized<--
06:14:22 T:1832  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.7) on Frodo (12.3) with Python 2.6.6
06:14:22 T:152   ERROR: Control 402 in window 10107 has been asked to focus, but it can't
06:14:22 T:1852  NOTICE: Thread Background Loader start, auto delete: false
@XBMC12 have you read this whole thread?
@nickr: this thread has 158 pages, that cannot be viewed so easily
So that means someone has to repeat what has already been posted? Thats not how it works sorry. The thread has a search feature too you know.
I had problems where my Kodi DLNA client function would stop working. I originally thought it was something to do with OSMC so I posted on their forums. You can see my original thread on the following link: https://discourse.osmc.tv/t/upnp-dlna-not-working/8020

TLDR: I came to conclusion that Youtube addon is causing problems, where after playing any video, and later restarting my Raspberry PI, .kodi/userdata/Database/Addons19.db would somehow get corrupted and DLNA would stop working. Only solution I found so far, is to remove that Addons19.db and restart Raspberry Pi again. But that solution is only temporary, because if I play any video on youtube again, Addons19.db will get corrupted again.

Using: Raspberry Pi 2, OSMC v.2015.08.1, Kodi v.15.1, Youtube v.5.1.8
(2015-09-19, 07:39)nickr Wrote: [ -> ]@XBMC12 have you read this whole thread?
No, because thread have 158 pages but after update plugin to 5.1.8 working again search function even without logging on YT :-). I did it like this:
  • uninstall old YT plugin from XBMC menu
  • delete folder plugin.video.youtube from %appdata%\XBMC\addons
  • download manually Bromix repository from repository.bromix.zip
  • install this repo plugin with menu XBMC Install from zip file
  • install YouTube 5.1.8 plugin from menu Bromix Add-ons
Image
Popular right now throws a content error...

not working
I find when I get one of those very frequent errors, re-trying usually works.

Bromix is out recovering from surgery right now, and health always comes first. All we can do is hope he feels better soon!
That's really sad that Bromix is having personal problems, but it's also kind of sad that only one guy takes care of youtube addon, I mean what will happen one day when Bromix is no longer available?
Version 5.1.9 (2015-09-21)
[add] Hebrew (thx 2 smoky-jr)
[upd] don't set default season and episodes (1x1)
[upd] another try to optimize the quota problem. Move all searches to the individual keys instead of one global
[fix] playback issues (skip discontinued video/format by YouTube)
(2015-09-10, 23:35)Eriol Wrote: [ -> ]I don't know if I'm alone in missing a "mark as watched" entry in the YouTube add-on contextmenu, but it would make it more consistent with the Kodi Video Library contextmenu. I find it very useful to mark videos in subscribed channels as "watched" so they can be hidden. The argument for that would really be the same as for the Kodi Video Library.

I can mark a YouTube video as "watched" by calling the action ToggleWatched (with json?) from my remote control app, but it's cumbersome.

Sorry if this is an old request. I could not find anything when searching this thread.

THANKS for this paragon of a Kodi add-on!

If someone can point me to a buildin function of KODI. Would be nice if this would be solved in CORE (if it makes any sense for streaming).