yoshuki / ripdiru

ruby script to record らじる★らじる streaming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

ruby script to record らじる★らじる streaming

License:MIT License


Languages

Language:Ruby 100.0%