Skip to content

Instantly share code, notes, and snippets.

View dougo-chris's full-sized avatar

Chris Douglas dougo-chris

  • Melbourne Australia
View GitHub Profile
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.
#!/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"