Advertisement
rotrevrep

vlc-radioways

Mar 3rd, 2018
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. result="`wget https://www.radioways.fr/radio/$1.html -q -O -`"
  4. l=${#result}
  5. if [ ${l} -eq 0 ]
  6. then
  7.     echo "radio non trouvée"
  8.     exit 0
  9. fi
  10.  
  11. echo $result | awk -F'data-streamurl="' '{print $2}' - | awk -F'"' '{print $1}' - | base64 -d | vlc -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement