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 Thread - tickbg - 2017-08-01

I had some issues with the addon. I was always getting errors accessing the addon.
System is Linux Mint 18.2 .

The error log is :

16:47:10.848 T:139787398964992 NOTICE: [plugin.video.youtube] Running: YouTube (5.4.1) on Krypton (Kodi-17.3) with Python 2.7.12
16:47:19.083 T:139787398964992 NOTICE: Previous line repeats 1 times.
16:47:19.083 T:139787398964992 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'cryptography.exceptions.InternalError'>
Error Contents: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLError(code=621174887L, lib=37, func=102, reason=103), _OpenSSLError(code=621215847L, lib=37, func=112, reason=103), _OpenSSLError(code=638279812L, lib=38, func=182, reason=132), _OpenSSLError(code=637968500L, lib=38, func=106, reason=116)])
Traceback (most recent call last):
File "/home/emo/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 3, in <module>
from youtube_plugin.kodion import runner
File "/home/emo/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/__init__.py", line 17, in <module>
from requests import api as client
File "/home/emo/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 52, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/home/emo/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/contrib/pyopenssl.py", line 49, in <module>
from cryptography.hazmat.backends.openssl import backend as openssl_backend
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 2299, in <module>
backend = Backend()
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 716, in __init__
self.activate_osrandom_engine()
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 738, in activate_osrandom_engine
self.openssl_assert(e != self._ffi.NULL)
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 719, in openssl_assert
return binding._openssl_assert(self._lib, ok)
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 43, in _openssl_assert
errors
InternalError: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLError(code=621174887L, lib=37, func=102, reason=103), _OpenSSLError(code=621215847L, lib=37, func=112, reason=103), _OpenSSLError(code=638279812L, lib=38, func=182, reason=132), _OpenSSLError(code=637968500L, lib=38, func=106, reason=116)])
-->End of Python script error report<--

A similar problem was reported via the project's github page.
The solution that worked for me was to upgrade pyopenssl to the latest version with pip.

sudo pip install pyopenssl -U.


RE: YouTube Plug-in Thread - debennett2 - 2017-08-01

I went from the 7/29 build to the 7/31 build and its working now.....The 7/29 build was my first attempt to run 18.


RE: YouTube Plug-in Thread - Luca Brasi - 2017-08-01

(2017-08-01, 06:32)Luca Brasi Wrote: Hi,

I reported freezes hang-ups because of ssl stuff a week ago here https://forum.kodi.tv/showthread.php?tid=267160&pid=2621882#pid2621882. As @yoGhurrt1 suggested I installed 5.4.1-alpha2 and as it turned out the freezes ended for a couple of days. I think I had one in the whole last week. But last night it came back again.
I'd be very grateful if anyone could help me with this.

It starts at around 00:38:53. The log starts right from the moment of waking up the system.


@Karellen- Log removed

@Luca Brasi, please use Pastebin or similar to post your logs. This one was too large for me to leave, like your other ones.

Ok, there it is:
https://pastebin.com/gkYgEBB6


RE: YouTube Plug-in Thread - anxdpanic - 2017-08-01

@tickbg, debennett2 : thanks for the heads up

@Luca Brasi: The InsecureRequestWarning 'ERROR's are just warnings and should not be usage impacting. In the add-on's Advanced settings you can enable forcing certificate verification (causes issues in some setups). In order to look any further into it a full debug_log (wiki) reproducing the issue would be required, as there is not enough information in the standard log.


RE: YouTube Plug-in Thread - Luca Brasi - 2017-08-02

(2017-08-01, 20:04)anxdpanic Wrote: @Luca Brasi: The InsecureRequestWarning 'ERROR's are just warnings and should not be usage impacting. In the add-on's Advanced settings you can enable forcing certificate verification (causes issues in some setups). In order to look any further into it a full debug_log (wiki) reproducing the issue would be required, as there is not enough information in the standard log.
Ok, thank you for having a look.
I enabled the forcing of certificate verification and the warnings are gone.
I have been lucky this morning and could reproduce the issue right after starting up kodi with full debugging enabled. I went to youtube plugin (I think around 09:33:45), into my subscriptions and navigated up and down. Maybe on the third or fourth line kodi froze. Right before that the busy circle came up but stopped circling right away. kodi remained in that state for about a minute I guess. It got back to being responsive after that. But whenever I tried to navigate up or down kodi just selected the target item for a second and jumped back to the previous one. I had to hit ESC a couple of times to get back to the homescreen. From there I could go into youtube again and it was working fine.
Please note that this is not only happening right after starting kodi. It can occur at any time.

Damn it, none of the pastebin services will let me upload logs of that size. Please get it here
https://www.dropbox.com/s/hra7jc0gk7rgu8y/kodi.zip?dl=0


RE: YouTube Plug-in Thread - Jeroen - 2017-08-05

Skinning related question, could the channel / publisher name be moved from the plot description to another infobool (Studio would be most appropriate I feel)?

My (and pretty sure other skins) have spaces reserved for metadata which could be used for this. Also, the bold text and line breaks hardcoded into the plot description is frustrating Smile


RE: YouTube Plug-in Thread - scofield272 - 2017-08-06

hii guys
any fix to the "daily limit exceeded " thing?
using kodi 17.3 , youtube 5.4.1 v


RE: YouTube Plug-in Thread - Jeffers24 - 2017-08-06

(2017-08-06, 08:41)scofield272 Wrote: hii guys
any fix to the "daily limit exceeded " thing?
using kodi 17.3 , youtube 5.4.1 v


See post #2 here:- https://forum.kodi.tv/showthread.php?tid=267160&pid=2299960#pid2299960


RE: YouTube Plug-in Thread - scofield272 - 2017-08-06

(2017-08-06, 08:45)Jeffers24 Wrote:
(2017-08-06, 08:41)scofield272 Wrote: hii guys
any fix to the "daily limit exceeded " thing?
using kodi 17.3 , youtube 5.4.1 v


See post #2 here:- https://forum.kodi.tv/showthread.php?tid=267160&pid=2299960#pid2299960

cheers sir, i just did all of this, but still get this "This key is unrestricted. To prevent unauthorized use and quota theft, restrict your key.
Key restriction lets you specify which web sites, IP addresses, or apps can use this key" ...
any idea how to authorize the key ?



*update*
it's fine now thanks, i just needed to "enable" the api Smile


RE: YouTube Plug-in Thread - Jeffers24 - 2017-08-06

(2017-08-06, 09:40)scofield272 Wrote:
(2017-08-06, 08:45)Jeffers24 Wrote:
(2017-08-06, 08:41)scofield272 Wrote: hii guys
any fix to the "daily limit exceeded " thing?
using kodi 17.3 , youtube 5.4.1 v


See post #2 here:- https://forum.kodi.tv/showthread.php?tid=267160&pid=2299960#pid2299960

cheers sir, i just did all of this, but still get this "This key is unrestricted. To prevent unauthorized use and quota theft, restrict your key.
Key restriction lets you specify which web sites, IP addresses, or apps can use this key" ...
any idea how to authorize the key ?

https://ibb.co/gn9nRa
https://ibb.co/gmNVev

*update*
it's fine now thanks, i just needed to "enable" the api Smile


:-)

If the link shows some of your API key details I would remove them from your post


RE: YouTube Plug-in Thread - jmh2002 - 2017-08-06

(2017-08-06, 09:40)scofield272 Wrote: *update*
it's fine now thanks, i just needed to "enable" the api Smile

I was going to suggest that something had possibly been missed and that you should try to re-follow my instructions that were linked earlier.


RE: YouTube Plug-in Thread - scofield272 - 2017-08-06

(2017-08-06, 11:21)jmh2002 Wrote:
(2017-08-06, 09:40)scofield272 Wrote: *update*
it's fine now thanks, i just needed to "enable" the api Smile

I was going to suggest that something had possibly been missed and that you should try to re-follow my instructions that were linked earlier.

the instructions are GREAT , but the enable api part that shows on the start of the instructions should be in the end of the instructions ... if you try to enable it at first it doesn't do anything ...so after you done with all the api parts , what you left to do is to enable it , and it's good to go

thanks !


RE: YouTube Plug-in Thread - matrzh - 2017-08-08

I am getting the following error (installation on Allwinner board, kind of special and custom compiled, see https://forum.kodi.tv/showthread.php?tid=254202&pid=2629321)

**Solved**, I updated my python. There must have been some corruption or it was because an update was held back. It is working, now.

Code:
3:55:22.673 T:2881639408   DEBUG:  StorageServer Module loaded RUN
23:55:22.674 T:2881639408   DEBUG: StorageClient-2.5.4 Starting server
23:55:22.701 T:2873250800   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.EOFError'>
                                            Error Contents: EOF read where object expected
                                            Traceback (most recent call last):
                                              File "/root/.kodi/addons/plugin.video.youtube/resources/lib/startup.py", line 3, in <module>
                                                from youtube_plugin.kodion.impl import Context
                                              File "/root/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/__init__.py", line 17, in <module>
                                                from requests import api as client
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 52, in <module>
                                                from .packages.urllib3.contrib import pyopenssl
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/__init__.py", line 27, in <module>
                                                from . import urllib3
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/__init__.py", line 8, in <module>
                                                from .connectionpool import (
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py", line 35, in <module>
                                                from .request import RequestMethods
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/request.py", line 3, in <module>
                                                from .filepost import encode_multipart_formdata
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/filepost.py", line 9, in <module>
                                                from .fields import RequestField
                                              File "/root/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/fields.py", line 2, in <module>
                                                import email.utils
                                              File "/usr/lib/python2.7/email/utils.py", line 40, in <module>
                                                from quopri import decodestring as _qdecode
                                            EOFError: EOF read where object expected
                                            -->End of Python script error report<--
23:55:22.727 T:2873250800    INFO: Python script stopped
23:55:22.727 T:2873250800   DEBUG: Thread LanguageInvoker 2873250800 terminating
If I start python from the console and type "import email.utils" or "from quopri import decodestring as _qdecode", no errors are thrown.
Can someone see what is wrong?
Linux is Debian stretch, python 2.7.9

I struggled the longest time to make kodi work on my device, at all (the graphics acceleration is a bit wicked), but I could open the youtube plugin. Now the videos play perfectly, but all of a sudden, the plugin throws the above error, as soon as I start kodi. I did uninstall and reinstall.


RE: YouTube Plug-in Thread - masimito - 2017-08-09

Hi!

I hope this is the right place to ask.

I am very happy with youtube and strm files! However, some original youtube streams have one or more subtitles to choose from, but none of them appear in the player.

Also, I have downloaded a subtitle file for my youtube strm file, with the same name in the same directory, as follows:

Peliculas/엽기적인 그녀 2001.srt <-- local subtitle
Peliculas/엽기적인 그녀 2001.strm <-- youtube strm file

However, it doesn't work, I have to add manually the subtitle ... and if I close the video and open it again the subtitle is gone!!

How can I make this work? Thank you!


RE: YouTube Plug-in Thread - gjwAudio - 2017-08-09

(2017-07-31, 15:13)jdf76 Wrote: 5.4.1 is released to the Youtube plugin repo.

5.4.1

Will there be an unofficial version of v5.4.1 ? Just tried the link on page one... getting "not a zip file" error. Sad

Thanks.