ripdiru rips and saves Radiru*Radiru, NHK netradio, in MP3. Metadata such as title and duration are automatically embeded to MP3s with the data fetched from the supposedly unofficial API.
Add this line to your application's Gemfile:
gem 'ripdiru'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ripdiru
Set up environment variables:
RIPDIRU_OUTDIR
: Output directory to save ripped MP3 files. Defaults to~/Music/Radiru
RIPDIRU_BITRATE
: Bitrate for re-encoded MP3. 48kbps by default (Radiko upstram is served around 48kbps)
Run ripdiru <station-id>
and the recording will start/stop automatically. Currently supported stations are as follows:
NHK1
: Radio-1st(ラジオ第1)NHK2
: Radio-2nd(ラジオ第2)FM
: NHK-FM
Recommended to install the following:
- Ruby 1.9
- Nokogiri
- ffmpeg
-
matchy2 (MACHIDA Hideki), for the shell script to rip Radiru*Radiru https://gist.github.com/matchy2/5310409
-
miyagawa (Tatsuhiko Miyagawa), for ripdiko, from which I shamelessly copy-pasted most of the code.
Haruo Nakayama (@harupong)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request