From 2aafae50dc90da8ae2432aaeca9569fbe49cf7d7 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sun, 2 Sep 2018 23:35:58 +0200 Subject: [PATCH] Adjust indent and update tags/timestamp. --- blog/data/2018-09-02-kodi-linux-youtube.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/blog/data/2018-09-02-kodi-linux-youtube.txt b/blog/data/2018-09-02-kodi-linux-youtube.txt index dfb0bbcc3e..fc7122b690 100644 --- a/blog/data/2018-09-02-kodi-linux-youtube.txt +++ b/blog/data/2018-09-02-kodi-linux-youtube.txt @@ -1,6 +1,6 @@ Title: Using the Kodi API to play Youtube videos -Tags: english, debian, video -Date: 2018-09-02 23:30 +Tags: english, debian, video, kodi +Date: 2018-09-02 23:40

I continue to explore my Kodi installation, and today I wanted to tell it to play a youtube URL I received in a chat, without having to @@ -11,7 +11,10 @@ available from http://kodihost/jsonrpc, you can try the following to have check out a nice cover band.

curl --silent --header 'Content-Type: application/json' \
-  --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open", "params": {"item": { "file": "plugin://plugin.video.youtube/play/?video_id=bmHHw5j2BhI&incognito=true&screensaver=true" } } }' http://projector.local/jsonrpc

+ --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open", + "params": {"item": { "file": + "plugin://plugin.video.youtube/play/?video_id=LuRGVM9O0qg" } } }' \ + http://projector.local/jsonrpc

I've extended kodi-stream program to take a video source as its first argument. It can now handle direct video links, youtube links -- 2.47.2