Last active
November 6, 2021 10:54
-
-
Save Xifax/53c2d8965168c975b713e9f04913f465 to your computer and use it in GitHub Desktop.
Play anime and game radio stations using mpv
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
#!/usr/bin/env bash | |
CHOICE=$(whiptail --title "Station" --menu "Make your choice" 18 50 10 \ | |
"1" "Anison.fm" \ | |
"2" "r-a-d.io" \ | |
"3" "VGM Radio" \ | |
"4" "Rainwave Game" \ | |
"5" "Rainwave Chiptune" \ | |
"6" "Rainwave All" \ | |
"7" "Kohina" \ | |
"8" "RPG Gamers" \ | |
3>&1 1>&2 2>&3) | |
case $CHOICE in | |
"1") | |
mpv "https://anison.fm/anison.m3u" | |
break | |
;; | |
"2") | |
mpv "https://relay0.r-a-d.io/main.mp3" | |
break | |
;; | |
"3") | |
mpv "https://vgmradio.com/vgmradio.m3u" | |
break | |
;; | |
"4") | |
mpv "https://rainwave.cc/tune_in/1.ogg.m3u" | |
break | |
;; | |
"5") | |
mpv "https://rainwave.cc/tune_in/4.ogg.m3u" | |
break | |
;; | |
"6") | |
mpv "https://rainwave.cc/tune_in/5.ogg.m3u" | |
break | |
;; | |
"7") | |
mpv "https://kohina.duckdns.org/icecast/stream.ogg" | |
break | |
;; | |
"8") | |
mpv "http://www.rpgamers.net/radio/radio.m3u" | |
break | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment