Kodi Community Forum

Full Version: YouTube Plug-in Thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I have done all of that and even installed a newer version of the youtube app. When you look at the youtube settings is states the new 5.4.5 version but in the list view and update page it continues to state an update is do.  Anyone else run into this? I am running the current 17.6 version of Kodi if that helps.
I have tried to find the answer to this, but haven't been able to find it in the thread.

Can I watch a Youtube paid movie with the addon? There is amovie I really want to see, and happy to pay for it. However I have only found it on Amazon and on Youtube paid.

If I pay for it on my laptop (via credit card), can I watch it in the addon?
@sp1d3y open the context menu on the YouTube add-on and choose Information, and then Update. You should see all versions and where they are being made available from. 5.4.5 should be the highest available from the repo at the moment.

@nickr I just purchased a movie short to confirm and it's not working currently. Will work towards adding support for it now that I have content to test.
I followed the instructions on post #2 and made my own keys, which I pasted straight in /userdata/addon_data/plugin.video.youtube/settings.xml as described in the bottom of the post. However, when I tried a search, I got an "invalid key" error on both youtube 5.4.6-alpha13 (kodi 14.2) and 5.5.0-alpha13 (kodi 17.6) and the search was not executed. 
So, In case I made any mistakes, I would like to ask how do all these strings look like in your setups. Mine look like so

- id = (12 characters, numbers only) - (32 characters of lowercase letters and numbers) .apps .googleusercontent .com (without the spaces)
- api key = (52 characters of lowercase and uppercase letters and numbers)
- secret key = (12 characters of lowercase and uppercase letters and numbers) - (11 characters of lowercase and uppercase letters and numbers)
Sorry if this has been asked but does anyone know if the audio delay during seeking while using DASH has been fixed? I'm still having this issue running ubuntu 17.10 with kodi 17.6 from the ppa as well as kodi-inputstream-adaptive Version: 2.0.19-1~artful from the ppa. Thanks for the great plugin!
@touser It's fixed in the version available with Kodi 18.
@anxdpanic thank you.
(2017-12-11, 17:11)anxdpanic Wrote: [ -> ]@musicadi The video you're playing is actually 360p (mp4;h.264 / aac@96) which shouldn't be an issue for Kodi, and are working(all black screen with seekbar and audio playing) on my Windows and OSMC installs. If you set the add-on to "Always ask for video quality" you can try the other audo/video codec and bitrate options.

Similar to @DjDiabolik's issue, once we start playback there isn't much we can do unless we're passing something unsupported to Kodi which doesn't appear to be the case.
@anxdpanic - yes, the "video" plays well on other platforms.

I had video quality set to 1080p/720p with "Always ask for video quality" disabled.

I enabled "Always ask for video quality" and selected 360p (mp4;h.264 / aac@96), but having the same issue. 

Here is the debug log while it was happening: http://sprunge.us/OQVj

I think this might be audio related.

I already tried disabling CEC and audio passthrough, but the issues remains.

I will post this in the LibreELEC forum also, maybe it's OS related.

EDIT: tested in Kodi 17.6 under Windows 10 and macOS 10.12 and he video plays well, so it's either OS or device related.
I need you help..... sometime when i start a reproduction immediatelly after on right upper corner of tv appear a notification of errors say to watch log.
On Log appears this:

Code:
19:54:48.761 T:1701835760  NOTICE: [plugin.video.youtube] Running: YouTube (5.5.0~alpha13) on Krypton (Kodi-17.5) with Python 2.7.9
19:56:35.599 T:1958756352  NOTICE: Previous line repeats 2 times.
19:56:35.599 T:1958756352  NOTICE: VideoPlayer: Opening: https://r3---sn-hpa7zned.googlevideo.com/videoplayback?expire=1513904193&id=o-ANwBUnvQU2rFEnzK6bvLJ5Yfmef8IHigJQC1Xkw_eNkr&mime=video%2Fmp4&ipbits=0&mm=31&ratebypass=yes&requiressl=yes&lmt=1513869561079021&ip=87.20.60.148&ei=4AM8Wq33PI3KVbHksbAJ&mt=1513882501&pl=16&dur=178.027&ms=au&mv=m&initcwndbps=613750&source=youtube&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&itag=22&mn=sn-hpa7zned&signature=81D8EA7FC538CA3DD10AF77D0042425C54DB17D9.633F59CD640BA6099BD752D1194E6B6E5266F679&key=yt6
19:56:35.599 T:1958756352 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:56:35.786 T:1701835760  NOTICE: Creating InputStream
19:56:36.328 T:1701835760  NOTICE: Creating Demuxer
19:56:36.540 T:1701835760  NOTICE: Opening stream: 0 source: 256
19:56:36.541 T:1701835760  NOTICE: Creating video codec with codec id: 28
19:56:36.559 T:1701835760  NOTICE: Creating video thread
19:56:36.559 T:1360782320  NOTICE: running thread: video_thread
19:56:36.559 T:1701835760  NOTICE: Opening stream: 1 source: 256
19:56:36.560 T:1701835760  NOTICE: Finding audio codec for: 86018
19:56:36.564 T:1553368048  NOTICE: [plugin.video.youtube] Running: YouTube (5.5.0~alpha13) on Krypton (Kodi-17.5) with Python 2.7.9
19:56:36.567 T:1701835760  NOTICE: Creating audio thread
19:56:36.567 T:1351844848  NOTICE: running thread: CVideoPlayerAudio::Process()
19:56:36.586 T:1351844848  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
19:56:43.819 T:1553368048   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 40, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 24, in run
                                                results = provider.navigate(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 107, in navigate
                                                result = method(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/register_provider_path.py", line 11, in wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 506, in _on_post_play
                                                watch_later_id = client.get_watch_later_id()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 814, in get_watch_later_id
                                                title_runs = title.get('runs', [])[0]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
The addons it's the latest alpha.......  i don't know what's append and i don't know because apparently somethigs of "Watch laters" it's be cited on errors because i never use the watch laters list.....

What's this strange errors ? I don't see problems on reproductions..............
I'm not using dash because on current osmc version it's a very old version whit so many problems....................... this log errors in not appears every video but randomly and same notification on right upper corner..... where is it ?
Hello @jdf76

I noticed your new thread for YouTube Plugin. Do you want this thread closed?
(2017-12-21, 22:07)Karellen Wrote: [ -> ]Hello @jdf76

I noticed your new thread for YouTube Plugin. Do you want this thread closed?
 Not just yet, waiting for the other guys to post his FAQ in the next few links.
Ok. Let me know when you are ready. Smile

Maybe reserve a couple of posts in your new thread in case you need them later.
@DjDiabolik I updated the alpha zip, the issue should be resolved. It was part of the addition to get watch later working again. Now to get Watch Later working fully, go to Settings - Folders - Retrieve Watch later playlist id and the add-on will try to find the id required.
(2017-12-21, 22:14)Karellen Wrote: [ -> ]Ok. Let me know when you are ready. Smile

Maybe reserve a couple of posts in your new thread in case you need them later.
 Go ahead and close out this thread. 

Everyone can go to the new thread on https://forum.kodi.tv/showthread.php?tid=325740

Jeff
At the request of the original author

This thread is closed

Please use the new thread, listed below, for assistance


https://forum.kodi.tv/showthread.php?tid=356934