ripdiru 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +28 -9
  2. data/bin/ripdiru +1 -1
  3. data/lib/ripdiru/version.rb +1 -1
  4. metadata +1 -1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Ripdiru
1
+ # ripdiru
2
2
 
3
- ruby gem to rip Radiru\*Radiru, NHK netradio
3
+ 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.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,18 +18,37 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Set up environment variables:
22
22
 
23
- ## TODO
23
+ - `RIPDIRU_OUTDIR`: Output directory to save ripped MP3 files. Defaults to `~/Music/Radiru`
24
+ - `RIPDIRU_BITRATE`: Bitrate for re-encoded MP3. 48kbps by default (Radiko upstram is served around 48kbps)
24
25
 
25
- - add metadata w/ radiru API
26
- - らじる★らじるの番組表API - 別館 子子子子子子(ねこのここねこ) http://d.hatena.ne.jp/riocampos+tech/20130405/1365145830
26
+ Run `ripdiru <station-id>` and the recording will start/stop automatically. Currently supported stations are as follows:
27
27
 
28
- ## Special thanks
28
+ - `NHK1`: Radio-1st(ラジオ第1)
29
+ - `NHK2`: Radio-2nd(ラジオ第2)
30
+ - `FM`: NHK-FM
29
31
 
30
- [matchy2 (MACHIDA Hideki)](https://github.com/matchy2)
32
+ ## Requirements
31
33
 
32
- https://gist.github.com/5310409.git
34
+ Recommended to install the following:
35
+
36
+ - Ruby 1.9
37
+ - Nokogiri
38
+ - rtmpdump
39
+ - ffmpeg
40
+
41
+ ## Special thanks to
42
+
43
+ - [matchy2 (MACHIDA Hideki)](https://github.com/matchy2), for the shell script to rip Radiru\*Radiru https://gist.github.com/5310409.git
44
+
45
+ - [miyagawa (Tatsuhiko Miyagawa)](https://github.com/miyagawa/), for `ripdiko` from which I shamelessly copy-pasted most of the code.
46
+
47
+ - [riocampos](https://github.com/riocampos/), for all the research published on the [blog](http://d.hatena.ne.jp/riocampos+tech/)
48
+
49
+ ## Author
50
+
51
+ Haruo Nakayama (@harupong)
33
52
 
34
53
  ## Contributing
35
54
 
data/bin/ripdiru CHANGED
@@ -25,7 +25,7 @@ class DownloadTask
25
25
  @duration = duration
26
26
  @cache = CacheDir.new(TMPDIR)
27
27
  @buffer = ENV['RIPDIRU_BUFFER'] || 60
28
- @outdir = ENV['RIPDIRU_OUTDIR'] || "#{ENV['HOME']}/Music/Radiko"
28
+ @outdir = ENV['RIPDIRU_OUTDIR'] || "#{ENV['HOME']}/Music/Radiru"
29
29
  @bitrate = ENV['RIPDIRU_BITRATE'] || '48k'
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module Ripdiru
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripdiru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: