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 -
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:
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:
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 -
VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?playlist_id=UUiB06K6zIMTDumCB9oh-XwA &order=SHUFFLE&play=1
while through the GUI it runs -
VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=nibUOygYHOE
Any ideas?