Created
March 11, 2016 18:32
-
-
Save timdp/e3b04462ff8ef4ac7cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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