Kodi Community Forum

Full Version: YouTube
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a working version of YouTube for Kodi 18.9 Leia? I use on the old iPad, there are no new Kodi updates.
I tried to install the version 6.8.26 ~ alpha7, but when trying to start the video, the error pops up.
On a pc with Kodi 20 YouTube 7.0.3.2 it works.
Thank you Jonib!
I just wanted to say to the developer(s) that v7.0.4 has solved all my issues. Subtitles work on every channel subscribed, every video played shows up in the history of my android phone YT app, and I have the ability to see #views, comments, likes and turn them off (thanks to Jonib)

Thanks very much.
I upgraded to 7.0.3.2 because YouTube videos stopped playing. The upgrade seems to have worked but I can no longer sign in. I was getting 400 errors, so I deleted the old access_manager.json and api_keys.json files and tried again. Now it asks me to verify the device at google.com/devices, but once I've done that it errors with codes 428 and 401. The credentials haven't changed at all. Any ideas?

https://paste.kodi.tv/pocebemawa.kodi
Version 7.0.x.x only plays first song from YouTube Playlist, although it load the playlist completely.
Manually starting the next song in the list will allow the list to continue playing completely.

Got this error in logs with Kodi 20.5 
Unable to get playlist items for plugin://plugin.video.youtube

I tried Kodi 19.5.  I didn't get that error but it seems to log the following error for each item in the playlist before it starts playing
ERROR <general>: NEWADDON Invalid Date Format "2008-12-23T16:27:23"

19.5 also only plays first song from the playlist
I am running Kodi from the master branch and using version 7.0.3.2+matrix.1 of the youtube plugin (from the Kodi add-on repo).  Recently, when I have InputStreamAdaptive enabled, nothing plays.  I get this error in the GUI:
 
Code:
Add-on couldn't be loaded.
An unknown error has occurred.

In kodi.log I get:
 
Code:
2024-03-15 17:50:19.563 T:25500    info <general>: Loading skin file: DialogAddonSettings.xml, load type: KEEP_IN_MEMORY
2024-03-15 17:50:27.814 T:25500    info <general>: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
2024-03-15 17:50:28.026 T:25692    info <general>: [plugin.video.youtube] Running: YouTube (7.0.3.2+matrix.1) on Omega (Kodi-21.0) with Python 3.11.8
                                                   Path: /
                                                   Params: {}
2024-03-15 17:50:28.293 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.188 T:25692    info <general>: Skipped 6 duplicate messages..
2024-03-15 17:50:29.188 T:25692    info <general>: [plugin.video.youtube] Running: YouTube (7.0.3.2+matrix.1) on Omega (Kodi-21.0) with Python 3.11.8
                                                   Path: /special/new_uploaded_videos_tv/
                                                   Params: {'category_label': 'My Subscriptions'}
2024-03-15 17:50:29.946 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.946 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.946 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.946 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.946 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.946 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.946 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.946 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.946 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.946 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.946 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.946 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.946 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.946 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.946 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.947 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.947 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.947 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.947 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.947 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.947 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.947 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.947 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.947 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.947 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:29.947 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:29.947 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:29.947 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:30.990 T:25692    info <general>: [plugin.video.youtube] Running: YouTube (7.0.3.2+matrix.1) on Omega (Kodi-21.0) with Python 3.11.8
                                                   Path: /play/
                                                   Params: {'video_id': 'Xxea6LfJBSY'}
2024-03-15 17:50:31.137 T:25692   error <general>: [plugin.video.youtube] Request failed
                                                   Status: 400 - Bad Request
                                                   Stack trace (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 17, in <module>
                                                       plugin_runner.run(youtube.Provider())
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 60, in run
                                                       __PLUGIN__.run(provider, context)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 63, in run
                                                       results = provider.navigate(context)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 112, in navigate
                                                       result = method(context, re_match)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 289, in wrapper
                                                       return func(*args, **kwargs)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 656, in on_play
                                                       return yt_play.play_video(self, context)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 48, in play_video
                                                       video_streams = client.get_video_streams(context, video_id)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 213, in get_video_streams
                                                       video_streams = video_info.load_stream_infos(video_id)
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 656, in load_stream_infos
                                                       return self._get_video_info()
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 1029, in _get_video_info
                                                       result = self.request(
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/network/requests.py", line 118, in request
                                                       stack_trace = format_stack()
                                                   
2024-03-15 17:50:31.687 T:25692 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-03-15 17:50:31.687 T:25692 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-03-15 17:50:31.687 T:25692 warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-03-15 17:50:31.704 T:25500    info <general>: VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=xxx
2024-03-15 17:50:31.704 T:25705    info <general>: Creating InputStream
2024-03-15 17:50:31.704 T:25705   error <general>: Unable to load /usr/lib/kodi/addons/inputstream.adaptive/inputstream.adaptive.so.21.4.3, reason: libpugixml.so.1: cannot open shared object file: No such file or directory
2024-03-15 17:50:31.818 T:25500    info <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY

The plugin works if I disable InputStreamAdaptive totally.  My version of inputstream-adaptive is 21.4.3 which I believe is current.

EDIT: upgrading to v7.0.4+beta.1 did not help.
This broke for me a couple weeks ago like everybody else. Finally got a minute to try and fix it today and I'm having no luck. Am I the only person still using a RPi 3b+? I'm trying libreelec right now, is there a better way? I keep getting hung up on the inputstream adaptive dependency. Can't find  way to install that for the life of me.
(2024-03-18, 03:12)GarfieldXLasagna Wrote: [ -> ]This broke for me a couple weeks ago like everybody else. Finally got a minute to try and fix it today and I'm having no luck. Am I the only person still using a RPi 3b+? I'm trying libreelec right now, is there a better way? I keep getting hung up on the inputstream adaptive dependency. Can't find  way to install that for the life of me.

I am still using one. The 7.0.3.2 version was working a couple of days ago when I last used it (I am running OSMC), although that is no guarantee as Youtube changes seem to take longer to rollout here in Australia.
Quote:error <general>: [plugin.video.youtube] Player response failed for video_id: bNyUyrR0PHo, using android client (logged in)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 929, in _request
result.raise_for_status()
File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.youtube.com/youtubei/v1/playe
I was fighting with the INVALID_CLIENT error for couple days and finally managed to fix my KODI (version 7.0.3 from the default OpenSUSE repo).

My struggle was also supplemented with the "out of quota" issue.

Everything started working like a charm after I did the following steps:
  1. Created a new project in Google Cloud console.
  2. Created an API Key and OAuth 2.0 Client ID. Make sure to select Client Type as "TV and Limited Input"
  3. Copypasted the API Key, Client ID and Secret to the Kodi Youtube Plugin settings. Made sure the "development API key" is enabled there.

That's it.
(2024-03-18, 15:14)MaryanR Wrote: [ -> ]I was fighting with the INVALID_CLIENT error for couple days and finally managed to fix my KODI (version 7.0.3 from the default OpenSUSE repo).

Created an API Key and OAuth 2.0 Client ID. Make sure to select Client Type as "TV and Limited Input"

My API is old..Do you know if there is a way to edit it to make sure this option was enabled?
Open
https://console.cloud.google.com/apis/dashboard

Choose your project in the top combo box (to the right from Google Cloud logo).

In the "Credentials" section look at "OAuth 2.0 Client IDs" list. Type column should be "TV and Limited Input". If not - create a new OAuth 2.0 key and use it instead.

If you see error messages related to quota - open this link: https://console.cloud.google.com/apis/ap...com/quotas

You should see something like:
Queries per day: 10 000
Queries per minute: 1 800 000
Queries per minute per user: 180 000

If not - you will have to create a new project in Google Cloud. Just follow the standard instructions.
Hello when using my playlist, I can not remove a video.    I have to press refresh every time to remove it.   Any ideas?  Thanks for everything
(2024-03-18, 23:52)MaryanR Wrote: [ -> ]Open
https://console.cloud.google.com/apis/dashboard

Choose your project in the top combo box (to the right from Google Cloud logo).

In the "Credentials" section look at "OAuth 2.0 Client IDs" list. Type column should be "TV and Limited Input". If not - create a new OAuth 2.0 key and use it instead.

If you see error messages related to quota - open this link: https://console.cloud.google.com/apis/ap...com/quotas

You should see something like:
Queries per day: 10 000
Queries per minute: 1 800 000
Queries per minute per user: 180 000

If not - you will have to create a new project in Google Cloud. Just follow the standard instructions.

Thank you for the help! Kinda figured I would have to make a new key..and...it worked!!! Big Grin
(2024-03-19, 01:41)nycguy Wrote: [ -> ]Hello when using my playlist, I can not remove a video.    I have to press refresh every time to remove it.   Any ideas?  Thanks for everything

Same here with "Watch Later" videos. If you delete them 2 or 3 times, they will eventually disappear. Just a little annoying.