Skip to content

Instantly share code, notes, and snippets.

@timdp
Created March 11, 2016 18:32
Show Gist options
  • Save timdp/e3b04462ff8ef4ac7cc9 to your computer and use it in GitHub Desktop.
Save timdp/e3b04462ff8ef4ac7cc9 to your computer and use it in GitHub Desktop.
@echo off
set host=172.16.0.18
set port=80
set username=kodi
set password=kodi
set file=%1%
echo {"id":1,"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"%file%"}}} | http ^
-pb -a %username%:%password% ^
POST http://%host%:%port%/jsonrpc ^
Content-Type:application/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment