Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- echo -n "Enter Roku IP Address: "
- read rokuIP
- echo -n "Enter URL: "
- read urlText
- echo -n "Enter video type (hls or mp4): "
- read videoType
- echo $urlText | curl -Gso /dev/null -w %{url_effective} --data-urlencode @- "" | sed -E 's/..(.*).../\1/' | read urlEncoded
- echo Executing: curl -X POST "http://$rokuIP:8060/input/15985?t=v&u=$urlEncoded&videoFormat=$videoType"
- curl -X POST "http://$rokuIP:8060/input/15985?t=v&u=$urlEncoded&videoFormat=$videoType"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement