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
The meat of shelling out safely was figured out by @notahat. | |
The idea for attaching to Symbol was from http://hans.fugal.net/blog/2007/11/03/backticks-2-0/ | |
It makes me feel ill. With awesome. |
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
#!/opt/local/bin/ruby -w | |
# git clone http://github.com/jjl/get_iplayer.git ~/Workspace/bin/get_iplayer/get_iplayer | |
# curl http://ftp.twaren.net/Unix/NonGNU/flvstreamer/macosx/flvstreamer_macosx_intel_32bit_latest --output ~/Workspace/bin/flvstreamer | |
# chmod 755 ~/Workspace/bin/flvstreamer | |
GET_IPLAYER = "~/Workspace/bin/get_iplayer/get_iplayer" | |
IPLAYER_CACHE = "~/.get_iplayer/radio.cache" | |
IPLAYER_HISTORY = "~/.get_iplayer/download_history" | |
FLVSTREAMER = "~/Workspace/bin/flvstreamer" | |
DOWNLOAD_PATH = "~/Music/BBC" |