Skip to content

Instantly share code, notes, and snippets.

@voyeg3r
Created July 29, 2017 12:46
Show Gist options
  • Save voyeg3r/ba23995b5e9da64fc22de36b9842b0bc to your computer and use it in GitHub Desktop.
Save voyeg3r/ba23995b5e9da64fc22de36b9842b0bc to your computer and use it in GitHub Desktop.
# 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
@voyeg3r
Copy link
Author

voyeg3r commented Jul 29, 2017

@UserLinuxBR Hi guys, take a look on my new pearl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment