Youtube Access error

Hi all,
I use OSMC on an Raspberry 4 and since 2 weeks i have problems to run my youtube access!
I installed this acces 1 year ago and everything worked fine till now!
When starting to play any viedo from my playlists there is an error “no access”

In my log i found this

2024-12-06 08:48:15.496 T:688     error <general>: [plugin.video.youtube] Player request failed
                                                   exc: |"error" in response JSON data|
                                                   reason: forbidden
                                                   message: |The caller does not have permission|
                                                   video_id: 9L5DFZSL2H8, client: media_connect_frontend, auth: True
                                                   Request response:
                                                   {'error': {'code': 403, 'message': 'The caller does not have permission', 'errors': [{'message': 'The caller does not have permission', 'domain': 'global', 'reason': 'forbidden'}], 'status': 'PERMISSION_DENIED'}}
                                                   Stack trace (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 16, in <module>
                                                       plugin_runner.run()
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 62, in run
                                                       plugin.run(provider, context, focused=(current_uri == new_uri))
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 158, in run
                                                       result, options = provider.navigate(context)
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 157, in navigate
                                                       result = handler(provider=self, context=context, re_match=re_match)
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 348, in process
                                                       media_item = _play_stream(provider, context)
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 68, in _play_stream
                                                       streams = client.get_streams(context,
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 196, in get_streams
                                                       return StreamInfo(context,
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/stream_info.py", line 1398, in load_stream_info
                                                       _result = self.request(
                                                     File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/network/requests.py", line 126, in request
                                                       stack_trace = format_stack()

Has anybody a hint for me?

The shared API keys the addon uses have mostly been revoked by YouTube because it’s basically “sharing” a YouTube login. You have to create your own YouTube API keys to watch YouTube videos.

More explanation here along with a link to the instructions on how to create the needed keys.

https://forum.kodi.tv/showthread.php?tid=356934&pid=3209756#pid3209756

1 Like