Kodi Community Forum
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: YouTube Plug-in Thread (/showthread.php?tid=353278)



RE: YouTube Plug-in Thread - David11 - 2019-10-17

(2019-10-14, 08:11)Paulo Boullos Wrote:
(2019-10-14, 04:00)Paulo Boullos Wrote: I installed Kodi 18.4 and the official youtube 6.5.1 app on a TV BOX (H96 Max RK3318) with Android 9.After some tests I realized that in some videos youtube add-on that doesn't play in 720p or 1080p. (see photo below)Note: All videos that the youtube add-on on Kodi only play in 360p through the browser goes up to 1080p.Example video where problem occurs: https://tinyurl.com/yxv5qhz4
After a few more tests I realized that the youtube app only plays music videos in 360p.Other videos play at 720p normally. Must be missing some certificate / license.I'm a newbie Kodi user; will the new version of the youtube app play music videos at 720p? 
In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH".


RE: YouTube Plug-in Thread - David11 - 2019-10-17

(2019-10-17, 02:20)David11 Wrote:
(2019-10-14, 08:11)Paulo Boullos Wrote:
(2019-10-14, 04:00)Paulo Boullos Wrote: I installed Kodi 18.4 and the official youtube 6.5.1 app on a TV BOX (H96 Max RK3318) with Android 9.After some tests I realized that in some videos youtube add-on that doesn't play in 720p or 1080p. (see photo below)Note: All videos that the youtube add-on on Kodi only play in 360p through the browser goes up to 1080p.Example video where problem occurs: https://tinyurl.com/yxv5qhz4
After a few more tests I realized that the youtube app only plays music videos in 360p.Other videos play at 720p normally. Must be missing some certificate / license.I'm a newbie Kodi user; will the new version of the youtube app play music videos at 720p? 
In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH". 
After enabling "Use MPEG-DASH" enable "Use for videos" and in "Video quality" choose 720p or 1080p.


Youtube plugin doesn`t continue playlist when started via CLI - jmmolenaar - 2019-10-17

Got a weird issue I cannot seem to resolve -
When I start a youtube playlist using the remote throug the interface, it will happily play all the videos (in all modes - default, shuffle, reverse) and only stop at the end of the playlist.

If I do this through the CLI though, while logged in via SSH, or by running a script through systemd, it will play the first video, and then stop…

I`m using this command -
Code:
xbmc-send --action="PlayMedia(plugin://plugin.video.youtube/play/?playlist_id=UUiB06K6zIMTDumCB9oh-XwA &order=SHUFFLE&play=1)"

The only difference I see is in the log - This is the log when it starts with the script:
Code:
2019-10-15 16:23:45.578 T:3574592224 NOTICE: [plugin.video.youtube] Running: YouTube (6.5.1) on Leia (Kodi-18.3) with Python 2.7.13
Path: /play/
Params: {‘playlist_id’: 'UUiB06K6zIMTDumCB9oh-XwA ', ‘play’: ‘1’, ‘order’: ‘SHUFFLE’}
2019-10-15 16:23:50.082 T:3574592224 NOTICE: [plugin.video.youtube] Running: YouTube (6.5.1) on Leia (Kodi-18.3) with Python 2.7.13
Path: /play/
Params: {‘video_id’: ‘R6b54JVDBfI’}
2019-10-15 16:23:51.768 T:4069613568 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?playlist_id=UUiB06K6zIMTDumCB9oh-XwA &order=SHUFFLE&play=1
2019-10-15 16:23:51.856 T:3499131616 NOTICE: Creating InputStream

And this is the log when starting using the GUI / remote:
Code:

2019-10-15 16:25:08.299 T:3473953504 NOTICE: [plugin.video.youtube] Running: YouTube (6.5.1) on Leia (Kodi-18.3) with Python 2.7.13
Path: /play/
Params: {‘playlist_id’: ‘UUiB06K6zIMTDumCB9oh-XwA’, ‘play’: ‘1’}
2019-10-15 16:25:17.758 T:3574592224 NOTICE: [plugin.video.youtube] Running: YouTube (6.5.1) on Leia (Kodi-18.3) with Python 2.7.13
Path: /play/
Params: {‘video_id’: ‘nibUOygYHOE’}
2019-10-15 16:25:19.411 T:4069613568 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=nibUOygYHOE
2019-10-15 16:25:20.151 T:3557806816 NOTICE: Creating InputStream

Note the only difference is that using the script, it starts the video by doing -
Code:

VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?playlist_id=UUiB06K6zIMTDumCB9oh-XwA &order=SHUFFLE&play=1

while through the GUI it runs -
Code:

VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=nibUOygYHOE

Any ideas?


RE: Youtube plugin doesn`t continue playlist when started via CLI - DarrenHill - 2019-10-17

@jmmolenaar - your post has been merged into the proper YouTube support thread where hopefully it can get the required attention.


RE: YouTube Plug-in Thread - Paulo Boullos - 2019-10-18

(2019-10-17, 02:20)David11 Wrote:
(2019-10-14, 08:11)Paulo Boullos Wrote:
(2019-10-14, 04:00)Paulo Boullos Wrote: I installed Kodi 18.4 and the official youtube 6.5.1 app on a TV BOX (H96 Max RK3318) with Android 9.After some tests I realized that in some videos youtube add-on that doesn't play in 720p or 1080p. (see photo below)Note: All videos that the youtube add-on on Kodi only play in 360p through the browser goes up to 1080p.Example video where problem occurs: https://tinyurl.com/yxv5qhz4
After a few more tests I realized that the youtube app only plays music videos in 360p.Other videos play at 720p normally. Must be missing some certificate / license.I'm a newbie Kodi user; will the new version of the youtube app play music videos at 720p? 
In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH".    
Thank you so much for answering.
I can't enable MPEG-DASH. (see photo below)
 
By the original youtube app on TV BOX music videos play normally at 720p. Why is proxy needed in youtube app in Kodi?

Image



RE: YouTube Plug-in Thread - David11 - 2019-10-18

(2019-10-18, 00:09)Paulo Boullos Wrote:
(2019-10-17, 02:20)David11 Wrote:
(2019-10-14, 08:11)Paulo Boullos Wrote: After a few more tests I realized that the youtube app only plays music videos in 360p.Other videos play at 720p normally. Must be missing some certificate / license.I'm a newbie Kodi user; will the new version of the youtube app play music videos at 720p?
In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH".     
Thank you so much for answering.I can't enable MPEG-DASH. (see photo below)By the original youtube app on TV BOX music videos play normally at 720p. Why is proxy needed in youtube app in Kodi?

Image
 
I think you do not have inputstream.adaptive installed, in the main window of Kodi press on "Add-ons" then stand on "Download" and press on "VideoPlayer InputStream" then press on "InputStream Adaptive" to install it.

Image


RE: YouTube Plug-in Thread - David11 - 2019-10-18

(2019-10-18, 01:17)David11 Wrote:
(2019-10-18, 00:09)Paulo Boullos Wrote:
(2019-10-17, 02:20)David11 Wrote: In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH".     
Thank you so much for answering.I can't enable MPEG-DASH. (see photo below)By the original youtube app on TV BOX music videos play normally at 720p. Why is proxy needed in youtube app in Kodi?

Image
 
I think you do not have inputstream.adaptive installed, in the main window of Kodi press on "Add-ons" then stand on "Download" and press on "VideoPlayer InputStream" then press on "InputStream Adaptive" to install it.

Image 
You may need to restart Kodi after installing inpustream.adaptive and enabling "USE MPEG-DASH" and choosing the resolution you want. For me i did not change anything in the HTTP Server.


Image



Image


RE: YouTube Plug-in Thread - Paulo Boullos - 2019-10-18

(2019-10-18, 01:17)David11 Wrote:
(2019-10-18, 00:09)Paulo Boullos Wrote:
(2019-10-17, 02:20)David11 Wrote: In the add-on settings in "MPEG-DASH" enable "USE MPEG-DASH".     
Thank you so much for answering.I can't enable MPEG-DASH. (see photo below)By the original youtube app on TV BOX music videos play normally at 720p. Why is proxy needed in youtube app in Kodi?

Image
 
I think you do not have inputstream.adaptive installed, in the main window of Kodi press on "Add-ons" then stand on "Download" and press on "VideoPlayer InputStream" then press on "InputStream Adaptive" to install it.

Image 

I had installed "inputstream adaptive" but it was not enabled, enabled "inputstream adaptive" and was able to configure "Use MPEG-DASH".
Then I reset to default "HTTP Server" and it worked perfectly, apparently does not need proxy.

I’m very grateful to you for helping me.


RE: YouTube Plug-in Thread - konbaasiang - 2019-10-19

(2019-02-06, 19:19)jmh2002 Wrote:
(2019-02-06, 17:04)roc4fun Wrote: Am I expecting the wrong thing?

Yes. Please see the FAQ in Post #4 on Page #1 here: https://forum.kodi.tv/showthread.php?tid=325740&pid=2681561#pid2681561

* RECOMMENDATIONS, RECOMMENDED, and RECOMMENDED FOR YOU

Recommendations is not the same as Recommended or Recommended for You, currently Recommendations is the only one working that I know of - anxdpanic (http://forum.kodi.tv/showthread.php?tid=...pid2455455)       

Just wondering if there's any more news or info about this. The referred original post is nearly 3 years old.
Is this a youtube API problem or an add-on problem?

"Recommendations" isn't useful, for me it's showing generic recommendations from last year, not in any way related to my viewing history or interests.

The "Recommended" section, the first thing that comes up on youtube.com, always shows something interesting to watch.
The collage of thumbnails that come up after you've finished a video on youtube.com also offers good suggestions.

Neither of these are working in the youtube add-on, which greatly limits the usefulness of this otherwise excellent add-on.

I've been using leanback for several years so this wasn't an issue for me, but now that leanback (youtube.com/tv) has been mercilessly euthanized I find myself relying on the Kodi YouTube add-on, which is great in some ways, but without any recommendation algorithm at all every video is a dead end. This in my opinion nullifies youtube's biggest advantage -- endless content.

Best regards, thanks in advance for any info.


RE: YouTube Plug-in Thread - liebezeit - 2019-10-19

(2019-09-22, 11:47)Wojtek Wrote: The plugin (6.5.1. as well as 6.5.2 beta3) started to crash on me throwing Python errors. Basically it refuses to work at all. Is it the plugin or is it Libreelec? Log below
Code:
ERROR: EXCEPTION Thrown (PythonToCppException)
Just to add to this bug report, I'm also experiencing this on 6.5.1 on a Nvidia Shield running Android/Shield Experience 8.0.1.
In addition to the above message there is a subsequent error:
ValueError: Extra data: line 19 column 4 - line 20 column 2 (char 942 - 945):
ValueError: Extra data: line 19 column 4 - line 20 column 2 (char 942 - 945)
I can do the whole log thing if needed, thanks.


RE: YouTube Plug-in Thread - effe.rnr - 2019-10-20

Hi,
I need some help with the subtitle settings. When I open the subtitle settings through youtube addon settings, I can choose between prompt and en subtitles but no other subtitles (when I choose prompt, I get many language options). I would like to auto-download german subtitles but without prompting every time I start a video. Is there a way to do that?

thanks!


RE: YouTube Plug-in Thread - anxdpanic - 2019-10-20

@luksol
There is no way to do that currently

@Wojtek
YouTube Settings -> Maintenance -> Delete access_manager.json

@dobbelina
Will look into it for a future release

@the_other_guy
I tried creating a node using the Node Editor and it seems to be working fine, will need a complete debug_log (wiki)

@pekko
For the watch later issue:
Run YouTube Settings -> Folders -> Retrieve Watch Later playlist id and follow the prompts. This function will likely be lost in the near future.
Per user settings is achieved using Kodi Profiles

@Calitar, @namtih
I'm aware of this with the Kodi 17 version of InputStream Adaptive, should be fixed in 18 and 19. If not using Kodi 17, provide a complete debug_log (wiki)

@oytschi
Likely ActivateWindow, add the channel to favorites and get the url from the favorites.xml

@Paulo Boullos
That video and music videos have all qualities for me, will need a complete debug_log (wiki) to see what is different for you.

@hondo235
Please try 6.5.2, if possible create a new debug_log (wiki) (even if it seems to work)

@jmmolenaar
For playlists try RunPlugin

@konbaasiang
I'll be looking into this again in a future release

@liebezeit
Need the complete debug_log (wiki)

@effe.rnr
The subtitle language is tied to the YouTube add-ons language setting atm. 
YouTube Settings -> Advanced -> Enable setup-wizard


Everyone with videos not playing w/ no error, enable YouTube Settings -> MPEG-DASH -> Use for Videos. It seems there are issues YouTube side with quite a few 720p mp4s, which may be a precursor to them being removed.

Sorry if I missed anyone, please repost with relevant information and complete debug_log (wiki) if I missed your post.

As some have noticed, youtube.com/tv is being shut down. Currently we rely on this for 'My Subscriptions', 'Saved Playlists', 'Purchases', and 'Watch Later playlist retrieval'. So there may be a period without some of these features, will be trying to find a way to minimize this.

I've updated post #2 and the repositories with v6.5.2 and is waiting approval on the official repository.
Code:
[fix] playback (No streams found)
[fix] missing metadata
[fix] ended live streams not using mpeg-dash when enabled
[fix] subscriptions not showing latest videos
[upd] simplify youtube_resolver regex |contrib: Twilight0|
[lang] de_de strings |contrib: TehTux|
[lang] pl_pl strings |contrib: drrak|
[lang] nl_nl strings |contrib: Markman-B|
.


RE: YouTube Plug-in Thread - Paulo Boullos - 2019-10-21

(2019-10-20, 21:47)anxdpanic Wrote: @Paulo Boullos
That video and music videos have all qualities for me, will need a complete debug_log (wiki) to see what is different for you.
The issue: https://forum.kodi.tv/showthread.php?tid=325740&pid=2892452#pid2892452
Logfile: https://paste.kodi.tv/tunonecofi

Thank you in advance for your attention.


RE: Youtube plugin doesn`t continue playlist when started via CLI - jmmolenaar - 2019-10-21

(2019-10-17, 21:26)DarrenHill Wrote: @jmmolenaar - your post has been merged into the proper YouTube support thread where hopefully it can get the required attention.

Thanks Darren - I would appreciate the help, still stuck on this Smile


RE: YouTube Plug-in Thread - thearm - 2019-10-21

(2019-10-08, 03:17)thearm Wrote:
(2019-10-02, 01:03)thearm Wrote: Also, some video's crash Kodi, and some will start to play, but won't play.  It's always happened rarely, but now it's happening often.  A few example are below:

Won't play:
https://www.youtube.com/watch?v=7ci7mFBuShQ
https://www.youtube.com/watch?v=HuLsrr79-Pw

Crashes Kodi:
https://www.youtube.com/watch?v=LRkNJmHfAs4
Here is the log from a fresh install of Kodi (if someone is interested in this issue).  I played two Youtube videos and both failed to play.

https://paste.kodi.tv/xuxifecopo.kodi 
Enabling MPEG Dash seemed to have fixed my issue.