Kodi Community Forum
Release YouTube Plug-in Thread - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release YouTube Plug-in Thread (/showthread.php?tid=267160)



RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-06-16

(2016-06-16, 09:06)Angry Gorilla Wrote: I quite frequently have problems with messages: Unknown kind " and Daily Limit Exceeded. It comes and goes and it's very frustrating. It happens every day.

Yeah it's a known problem. Unfortunately it's not an easy fix since a lot of people use this plug-in.


RE: YouTube Plug-in **New Thread*** - black_eagle - 2016-06-16

The skin I use depends heavily on Script.Skin.Helper.Service which also depends on the YT plugin. When listening to on-line radio (which I do a LOT !!) the YT plugin often gets called when there is no track or artist info to look up (eg, station doesn't always supply it, DJ is talking etc) and this generates an error in abstract_provider.py

PHP Code:
ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.KeyError'>
                                            
Error Contents'q'
                                            
Traceback (most recent call last):
                                              
File "/home/xbmc/.kodi/addons/plugin.video.youtube/default.py"line 7in <module>
                                                
runner.run(__provider__)
                                              
File "/home/xbmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py"line 32in run
                                                __RUNNER__
.run(providercontext)
                                              
File "/home/xbmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py"line 23in run
                                                results 
provider.navigate(context)
                                              
File "/home/xbmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py"line 123in navigate
                                                result 
method(contextre_match)
                                              
File "/home/xbmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py"line 253in _internal_search
                                                query 
params['q']
                                            
KeyError'q' 

I fixed this for myself by enclosing the search in a try:except block

PHP Code:
elif command == 'query':
            try:
                
query params['q']
                
search_history.update(query)
                return 
self.on_search(querycontextre_match)
            
except:
                
result =[]
                return 
result
        
else:
            
result = [] 
This stops any error notifications and although I think my use-case is unlike the majority of users, I thought I'd bring it to the attention of the add-on writers in case they would like to include the fix in a future version.


RE: YouTube Plug-in **New Thread*** - Thinaran - 2016-06-16

Will the plugin eventually support Youtube Red? I bought an episode of MatPat's Game Lab, but sending it to Kodi or putting it in watch later just gives the error message "No video stream found". Had to watch it on my laptop like a pleb.


RE: YouTube Plug-in **New Thread*** - blueribb - 2016-06-16

(2016-06-16, 09:06)Angry Gorilla Wrote: I quite frequently have problems with messages: Unknown kind " and Daily Limit Exceeded. It comes and goes and it's very frustrating. It happens every day.

You have 3 choices:

1. Wait until this issue is resolved in the next version
2. Generate your own keys
3. Install an older version of the plug-in and disable auto-update. (version 5.1.19 works for me)


RE: YouTube Plug-in **New Thread*** - elreymon - 2016-06-16

Hello there:

I leave the Pi all time switched on. I´ve noticed that after a time of inactivity (not using it) when I return and enter in the YouTube addon, the things seems to be bad. I mean, the plugin seems to be in a "unestable" or bad status, becouse the thumbnails of the menu are not displayed.

After that, If I try to use the plugin (eg: play a video) then the Youtube popup appears (showing "YouTube - 100%" and "oppening flux") and then kodi freezes :-(
So the only solution is to reboot raspberry or just kill kodi.bin to force it to restart. Then as the plugin has restarted, all works fine. This is the only plugin that gives me problems.

¿Has anyone the same problem?
* Tested on a fresh installed kodi
* With older versions of kodi and YouTube plugin this didn´t happen
* Here is kodi.log (mode debug on). Only errors are shown. As you can see I started to use the Pi at 17:05

545: 23:21:52 91362.484375 T:3014652912 ERROR: ActiveAE::InitSink - failed to init
546: 01:20:40 98490.851562 T:2550916080 ERROR: Previous line repeats 1295 times.
547: 01:20:40 98490.851562 T:2550916080 WARNING: Platinum [neptune.bufferedstreams]: NPT_CHECK failed, result=-20400 (NPT_ERROR_CONNECTION_RESET) [(__result)]
548: 01:20:40 98490.851562 T:2550916080 WARNING: Platinum [platinum.core.http.servertask]: NPT_CHECK failed, result=-20400 (NPT_ERROR_CONNECTION_RESET) [(res)]
549: 01:20:41 98491.812500 T:3014652912 ERROR: ActiveAE::InitSink - failed to init
550: 17:05:23 155174.296875 T:3014652912 ERROR: Previous line repeats 10304 times. <-- time not using the Pi
553: 17:05:29 155179.796875 T:3014652912 ERROR: ActiveAE::InitSink - failed to init
556: 17:05:32 155183.109375 T:2513429488 ERROR: Unable to find plugin <-- Could this be the culprit?
557: 17:05:32 155183.109375 T:3024184240 ERROR: GetDirectory - Error getting plugin://
558: 17:05:32 155183.109375 T:3024184240 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
559: 17:05:34 155185.312500 T:3014652912 ERROR: ActiveAE::InitSink - failed to init
1946: 17:06:43 155253.515625 T:2745955312 INFO: Platinum [neptune.http]: NPT_CHECK failed, result=-20014 (NPT_ERROR_TIMEOUT) [(result)] <-- Freeze. Yatse app not responding
2050: 17:06:46 155256.843750 T:3014652912 ERROR: ActiveAE::InitSink - failed to init
3785: 17:07:35 155305.578125 T:2745955312 INFO: Platinum [neptune.http]: NPT_CHECK failed, result=-20014 (NPT_ERROR_TIMEOUT) [(result)]
4782: 17:08:08 155339.359375 T:3014652912 ERROR: ActiveAE::InitSink - failed to init


RE: YouTube Plug-in **New Thread*** - h0d3nt3uf3l - 2016-06-16

Hi elreymon,
which youtube Version do you talk about?
Which is working and whuxh doesn't?
Version of Kodi? Using OS?

I've running my pi with openelec at this time and kodi 15 like you 24/7 and don't have this Problems.


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-06-16

(2016-06-16, 11:04)Thinaran Wrote: Will the plugin eventually support Youtube Red? I bought an episode of MatPat's Game Lab, but sending it to Kodi or putting it in watch later just gives the error message "No video stream found". Had to watch it on my laptop like a pleb.

I'll be honest with you, i don't think it will. It all depends on how the youtube red works.

Jeff


RE: YouTube Plug-in **New Thread*** - mark112887 - 2016-06-17

I feel stupid that I don't know the answer to this question but hopefully somebody can help me. Does anybody know how I can view the whole description of a video in the ad on? Currently what happens is I can read the description but it gets cut off it seems to do that no matter what view I pick


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-06-17

(2016-06-17, 18:10)mark112887 Wrote: I feel stupid that I don't know the answer to this question but hopefully somebody can help me. Does anybody know how I can view the whole description of a video in the ad on? Currently what happens is I can read the description but it gets cut off it seems to do that no matter what view I pick

Yes and No.

There is a way to see the description but you have to do two steps. I'm going to be basing this response on you using Confluence.

1. You need to go to the skin settings and check enable auto-scrolling for plot & review

Image

then set your view to Media Info

Image

This is your result. (this should be an animated gif)
Image

I hope this helps.

Thanks,
Jeff


RE: YouTube Plug-in **New Thread*** - mark112887 - 2016-06-17

(2016-06-17, 18:28)jdf76 Wrote:
(2016-06-17, 18:10)mark112887 Wrote: I feel stupid that I don't know the answer to this question but hopefully somebody can help me. Does anybody know how I can view the whole description of a video in the ad on? Currently what happens is I can read the description but it gets cut off it seems to do that no matter what view I pick

Yes and No.

There is a way to see the description but you have to do two steps. I'm going to be basing this response on you using Confluence.

1. You need to go to the skin settings and check enable auto-scrolling for plot & review

Image

then set your view to Media Info

Image

This is your result. (this should be an animated gif)
Image

I hope this helps.

Thanks,
Jeff

Did the trick, thanks so much


RE: YouTube Plug-in **New Thread*** - VelvetKevorkian - 2016-06-18

Also, in the addon settings/advanced, set the view number to "504" to make Media Info the standard view for YT vids.


RE: YouTube Plug-in **New Thread*** - elreymon - 2016-06-18

(2016-06-16, 19:03)h0d3nt3uf3l Wrote: Hi elreymon,
which youtube Version do you talk about?
Which is working and whuxh doesn't?
Version of Kodi? Using OS?
I've running my pi with openelec at this time and kodi 15 like you 24/7 and don't have this Problems.

I´m on OSMC (disk image from 2016.05-1 9bd3206bdb4e112c8b4cbd1e24fd1e89) = Kodi Jarvis 16.1
YouTube addon from this forum (v5.2.2).

What happens is that afeter about a few hours of not use, the Pi becomes as broken or unnestable for any reason. So when I resume, what I can see is that sound of menu movement has dissappeared, and youtube addon goes from OK:
Image

to KO (not showing icons):
Image

Here are two logs.
1.- Trying to play youtube from unestable situation. Kodi freezes.
2.- Trying to play an mp3 from unestable situation. Kodi freezes.


RE: YouTube Plug-in **New Thread*** - Tarkus_ - 2016-06-18

What's the easiest way to delete all traces of the plug-in on a Fire TV Stick, to ensure a completely new install? I can delete the addon_data folder easily enough in Kodi's file manager, but the main plugin folder is more problematic.


RE: YouTube Plug-in **New Thread*** - Doktor-X - 2016-06-18

(2016-06-15, 22:23)h0d3nt3uf3l Wrote: I've played a few days ago a 4k Video with the addon Big Grin sadly without sound but I'm on it to solved this as well. The future is brighter than you think my friend Smile

So we can expect dash support soon can wait


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-06-18

(2016-06-18, 19:32)Tarkus_ Wrote: What's the easiest way to delete all traces of the plug-in on a Fire TV Stick, to ensure a completely new install? I can delete the addon_data folder easily enough in Kodi's file manager, but the main plugin folder is more problematic.

Uninstall the plugin and delete the addon_data/plugin..... folder

Jeff