Created
April 24, 2017 16:01
-
-
Save hamidzr/fb82c7ce2bdcf6cedd3e63a340ccae29 to your computer and use it in GitHub Desktop.
play generic uri to kodi instance.
This file contains 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
#!/bin/bash | |
# pass a uri as an argument to play | |
curl -s --data-ascii '{"jsonrpc":"2.0","id":"1","method":"Application.SetVolume","params":{"volume":70}}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc | |
curl -s --data-ascii '{"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"'$1'"}}}' -H 'content-type: application/json;' http://hpi:8080/jsonrpc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.ted.com/surpriseme.json?minutes=45&rating_word_id=9
https://www.ted.com/talks/quick-list
To play grab ted talks as audio:
https://download.ted.com/talks/AmyWebb_2013S.mp3?apikey=bla
where does S come from?