Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/zsh
  2.  
  3.  
  4. echo -n "Enter Roku IP Address: "
  5.  
  6. read rokuIP
  7.  
  8. echo -n "Enter URL: "
  9.  
  10. read urlText
  11.  
  12. echo -n "Enter video type (hls or mp4): "
  13.  
  14. read videoType
  15.  
  16. echo $urlText | curl -Gso /dev/null -w %{url_effective} --data-urlencode @- "" | sed -E 's/..(.*).../\1/' | read urlEncoded
  17.  
  18. echo Executing: curl -X POST "http://$rokuIP:8060/input/15985?t=v&u=$urlEncoded&videoFormat=$videoType"
  19.  
  20. curl -X POST "http://$rokuIP:8060/input/15985?t=v&u=$urlEncoded&videoFormat=$videoType"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement