From: Petter Reinholdtsen Date: Sun, 2 Sep 2018 21:35:58 +0000 (+0200) Subject: Adjust indent and update tags/timestamp. X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/2aafae50dc90da8ae2432aaeca9569fbe49cf7d7?hp=c0ed6d33f316f2b44485bb7a7671955b0e647322 Adjust indent and update tags/timestamp. --- 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