ruby script to record らじる★らじる streaming
Ruby
Latest commit cd13ff7 Nov 28, 2013 @harupong Up version 0.2.1
Celebrating the introduction of fixing harupong/rudika#7 for
ripdiru
Permalink
Failed to load latest commit information.
bin Move the main code from bin/ripdiru to lib/ripdiru.rb Oct 21, 2013
lib Up version 0.2.1 Nov 28, 2013
.gitignore Add log directory to .gitignore Oct 15, 2013
Gemfile Shamelessly copying ripdiko executable as an example Oct 15, 2013
LICENSE.txt Shamelessly copying ripdiko executable as an example Oct 15, 2013
README.md Update README.md Oct 22, 2013
Rakefile
ripdiru.gemspec

README.md

ripdiru

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.

Installation

Add this line to your application's Gemfile:

gem 'ripdiru'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ripdiru

Usage

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

Requirements

Recommended to install the following:

  • Ruby 1.9
  • Nokogiri
  • ffmpeg

Special thanks to

Author

Haruo Nakayama (@harupong)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request