Created
July 29, 2017 12:46
-
-
Save voyeg3r/ba23995b5e9da64fc22de36b9842b0bc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# In order to get radio stations addresses I am normaly | |
# get the url with "firefox download helper" show url option | |
# the idea to use tee came from here: | |
# source: https://shkspr.mobi/blog/2011/11/watching-and-simultaneously-saving-video-in-mplayer/ | |
dumpwnyc () { | |
station="wnyc" | |
url="http://fm939.wnyc.org/wnycfm-tunein.aac" | |
filename=${station}-$(date +%Y-%b-%d--%H.%Mhs).mp3 | |
wget -O - "$url" | tee -ai "$filename" | mpg123 - | |
} | |
dumpwnyc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@UserLinuxBR Hi guys, take a look on my new pearl