Kodi Community Forum
Release YouTube - 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 (/showthread.php?tid=356934)



RE: YouTube - Anneke123 - 2021-12-13

Hi !

My Rasp 3 hdmi port died, so I bought myself a 4 for Christmas.

Since I was able to watch 2 videos and then it stopped working ARGH HELP.

Symptoms: Videos are not playing.

I tried :
- Reinstall the plugin from scratch (deleted both folders)
- Reconnect with my API key, login OK, I see 200 Ok querys in GCP
- Move to MPEG-Dash and set the video to 720p Max

The failure is at the same stage, with or without MPEG-Dash it fails at CURL step

xml:


2021-12-13 20:30:08.023 T:2256515904   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
2021-12-13 20:30:08.023 T:2256515904   ERROR: CCurlFile::Open failed with code 0 for https://EDITED-hgns.googlevideo.com/videoplayback?expire=....
2021-12-13 20:30:08.023 T:2256515904   ERROR: AddOnLog: InputStream Adaptive: Unable to select stream!
2021-12-13 20:30:09.080 T:2229834560   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
2021-12-13 20:30:09.080 T:2229834560   ERROR: CCurlFile::Open failed with code 0 for https://EDITED-hgns.googlevideo.com/videoplayback?expire=....


I'm out of clues. Any help ?


RE: YouTube - TheGridOne - 2021-12-15

(2021-12-13, 14:27)graysky Wrote: Is there an update planned for python 3.10?  If one attempts to run the plugin on a system running python 3.10.1, it crashes:
Code:
2021-12-13 07:26:51.860 T:7918    ERROR <general>: Exception ignored deletion of interned string failed
2021-12-13 07:26:51.860 T:7918    ERROR <general>: :
                                                   
2021-12-13 07:26:51.860 T:7918    ERROR <general>: Traceback (most recent call last):
                                                   
2021-12-13 07:26:51.860 T:7918    ERROR <general>:   File "/usr/lib/python3.10/sqlite3/dbapi2.py", line 83, in register_adapters_and_converters
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>:     
2021-12-13 07:26:51.865 T:7918    ERROR <general>: register_converter("timestamp", convert_timestamp)
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: KeyError
2021-12-13 07:26:51.865 T:7918    ERROR <general>: : 
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 'timepart_full'
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: Exception ignored deletion of interned string failed
2021-12-13 07:26:51.865 T:7918    ERROR <general>: :
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: Traceback (most recent call last):
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>:   File "/usr/lib/python3.10/sqlite3/dbapi2.py", line 83, in register_adapters_and_converters
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>:     
2021-12-13 07:26:51.865 T:7918    ERROR <general>: register_converter("timestamp", convert_timestamp)
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: KeyError
2021-12-13 07:26:51.865 T:7918    ERROR <general>: : 
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 'timepart'
2021-12-13 07:26:51.865 T:7918    ERROR <general>: 
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: Exception ignored deletion of interned string failed
2021-12-13 07:26:51.865 T:7918    ERROR <general>: :
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>: Traceback (most recent call last):
                                                   
2021-12-13 07:26:51.865 T:7918    ERROR <general>:   File "/usr/lib/python3.10/sqlite3/dbapi2.py", line 83, in register_adapters_and_converters

Hi,

I get the same exception here, but apparently I don't use the YouTube add-on. I have the error on Kodi Matrix and on a Git build from yesterday (14-12-2021). Any ideas? Using Arch Linux.


RE: YouTube - ocarror - 2021-12-23

(2021-12-13, 19:38)sflix Wrote: Hi,
Google has change its sign in proces, so "google.com/device" isn't working anymore.

Did you find a way that works? Failing for me also (just logging in, everything else works fine)


RE: YouTube - menou - 2021-12-24

youtube subscriptions can´t be opened.
YouTube (6.8.18+matrix.1) on N***** (Kodi-20.0) with Python 3.8.12

log: https://paste.kodi.tv/hujiweroge.kodi


RE: YouTube - noenjeru - 2021-12-26

Hello, do you know how execute a youtube search with kodi rpc api and youtube plugin ? 

For exemple like that (c# client) : 

                            KodiService.ExecuteAddon(new ExecuteAddonParams()
                            {
                                AddonId = "plugin.video.youtube",
                                Wait = false,
                                Params = new string[] { "action=search_video;q=" + parameter }
                            });

I need the right "action" and to know how to send the search string (if this feature exists).


RE: YouTube - dembala - 2021-12-26

Quote:Hi,
Google has change its sign in proces, so "google.com/device" isn't working anymore.

Well, "google.com/device" is available on a PC/mobile, after giving it the first code it even accepts and does what it used to, but the kodi plugin throws exepctions that the client type is invalid and wont continue. No sign of second code or whatsoever. At this point i can't sign-in to youtube via the plugin. Watching videos, searching, all works, but i cant access my subscriptions Sad
Kind of frustrating that google continuosly messes around with these APIs... What a bummer.


RE: YouTube - FakeAF - 2021-12-29

Seriously s/o to anxdpanic,bromix and countless others who kept the YouTube app going with logs,etc. Seems Google is hell bent on stopping us. The alpha 3 fixed all my stuttering issues months ago (& currently worked fine on 18.9). Well while on vacay, I decided to update to 19.3 on my main FireStick ,after a full successful install of YouTube (+matrix1) on my low use theater FireStick a week ago and was met with 'only clients of type of TVs and limited input devices can you use the oauth 2.0 flow for TV and limited input devices applications please create and use an appropriate client' error 401 as a few others have said.

A quick check to the low use stick in my theater noticed me being signed out and met with same message after the 1st Google/device authorized attempt.

This seems to only effect the sign in, searching & watching multiple videos with my API keys is fine.

Again, muchas gracias to all those hammering behind the scenes in your personal time. We are in debt to you!!


Re: YouTube and API keys - ExTechOp - 2021-12-30

A total newbie question which does not seem to be clearly addressed by the FAQ: I am not really interested in binding the Kodi Youtube add-on to my Youtube account, I just want to add a some live TV streams (like Euronews, Sky News, Al-Jazeera etc) into Kodi favorites (yes, I know some of these have had their own dedicated Kodi add-ons, but many no longer work with Kodi 19 Matrix and this would be a way to do it without depending on more add-ons). With a browser on a PC, it is quite possible to view videos on Youtube anonymously, without any kind of logging in. As far as I can tell from browsing around (and forums like this are not very helpful for long-term documentation), this add-on seems to be built completely around using personal API keys (~ logging in), is not the equivalent of anonymous stream watching at all possible with this add-on?


RE: YouTube - shaktoo - 2021-12-30

(2021-12-26, 20:37)dembala Wrote:
Quote:Hi,
Google has change its sign in proces, so "google.com/device" isn't working anymore.

Well, "google.com/device" is available on a PC/mobile, after giving it the first code it even accepts and does what it used to, but the kodi plugin throws exepctions that the client type is invalid and wont continue. No sign of second code or whatsoever. At this point i can't sign-in to youtube via the plugin. Watching videos, searching, all works, but i cant access my subscriptions Sad
Kind of frustrating that google continuosly messes around with these APIs... What a bummer.
Confirm This Is happeing on my NVIDIA SHIELD Kodi Matrix 19.3 as well.


RE: YouTube and API keys - Majide - 2021-12-30

(2021-12-30, 13:20)ExTechOp Wrote: ...want to add a some live TV streams ... into Kodi favorites ... anonymous stream watching at all possible with this add-on?
Just enter your API keys in the addon settings and set your preferences for quality and so on... Enable using of InputStream Adaptive for FullHD support. Then, just make m3u playlist for PVR IPTV Simple Client with similar content:

#EXTM3U
#EXTINF:-1,Playlist Name Here
plugin://plugin.video.youtube/play/?play=1&order=shuffle&playlist_id=YourChoosenYoutubePlaylistIDHere

#EXTINF:-1,Youtube Video Name Here (or TV Channel name)
plugin://plugin.video.youtube/play/?video_id=VideoIDHere

Via Kodi TV menu, you will have access to this videos, live streams or whole playlist in Youtube! If you want, can invoke via context menu "Add to favourites" for this elements in channels list.


RE: YouTube and API keys - ExTechOp - 2022-01-01

(2021-12-30, 20:21)Majide Wrote:
(2021-12-30, 13:20)ExTechOp Wrote: ...want to add a some live TV streams ... into Kodi favorites ... anonymous stream watching at all possible with this add-on?
Just enter your API keys in the addon settings and set your preferences for quality and so on [...]
I assume this means, "no, it is not possible (in any reasonable way) to use the Youtube add-on without API keys"? What is the reason for such a design decision?


RE: YouTube and API keys - Majide - 2022-01-01

(2022-01-01, 11:34)ExTechOp Wrote: ...it is not possible (in any reasonable way) to use the Youtube add-on without API keys"? What is the reason for such a design decision?
Google API Keys have quota and if many people use the same Keys, the quota will be exceeded. That's why, every user must use personal API Keys. Without the Keys, it will not be possible for addon to work with the API.


RE: YouTube - SilentR33p3r - 2022-01-03

(2021-12-30, 18:18)shaktoo Wrote:
(2021-12-26, 20:37)dembala Wrote:
Quote:Hi,
Google has change its sign in proces, so "google.com/device" isn't working anymore.

Well, "google.com/device" is available on a PC/mobile, after giving it the first code it even accepts and does what it used to, but the kodi plugin throws exepctions that the client type is invalid and wont continue. No sign of second code or whatsoever. At this point i can't sign-in to youtube via the plugin. Watching videos, searching, all works, but i cant access my subscriptions Sad
Kind of frustrating that google continuosly messes around with these APIs... What a bummer.
Confirm This Is happeing on my NVIDIA SHIELD Kodi Matrix 19.3 as well."
"proycon commented yesterday • 

Create a new "OAuth 2.0 Client ID" on https://console.cloud.google.com/apis/credentials and set type to 'TV and limited input device' (modifying the type an existing one is not possible), make sure to update the API Id and API secret for this kodi plugin.
(this is not a bug, google probably made some stuff stricter)"

C/P from GitHub issues. Got me going again.


RE: YouTube - robgolbh - 2022-01-03

Hi guys, thanks for the great job. I have a channel with videos not listed on youtube. How can I view it? I did the entire setup procedure with the same login as my channel. Abcs!


RE: YouTube - shaktoo - 2022-01-03

(2022-01-03, 00:11)SilentR33p3r Wrote:
(2021-12-30, 18:18)shaktoo Wrote:
(2021-12-26, 20:37)dembala Wrote: Well, "google.com/device" is available on a PC/mobile, after giving it the first code it even accepts and does what it used to, but the kodi plugin throws exepctions that the client type is invalid and wont continue. No sign of second code or whatsoever. At this point i can't sign-in to youtube via the plugin. Watching videos, searching, all works, but i cant access my subscriptions Sad
Kind of frustrating that google continuosly messes around with these APIs... What a bummer.
Confirm This Is happeing on my NVIDIA SHIELD Kodi Matrix 19.3 as well."
"proycon commented yesterday • 

Create a new "OAuth 2.0 Client ID" on https://console.cloud.google.com/apis/credentials and set type to 'TV and limited input device' (modifying the type an existing one is not possible), make sure to update the API Id and API secret for this kodi plugin.
(this is not a bug, google probably made some stuff stricter)"

C/P from GitHub issues. Got me going again.
@SilentR33p3r : Thanks for sharing this.
I shall be trying this later tonight
Big Grin


This forum uses Lukasz Tkacz MyBB addons.