ripdiru 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +28 -9
- data/bin/ripdiru +1 -1
- data/lib/ripdiru/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# ripdiru
|
2
2
|
|
3
|
-
|
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
|
-
|
21
|
+
Set up environment variables:
|
22
22
|
|
23
|
-
|
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
|
-
-
|
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
|
-
|
28
|
+
- `NHK1`: Radio-1st(ラジオ第1)
|
29
|
+
- `NHK2`: Radio-2nd(ラジオ第2)
|
30
|
+
- `FM`: NHK-FM
|
29
31
|
|
30
|
-
|
32
|
+
## Requirements
|
31
33
|
|
32
|
-
|
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/
|
28
|
+
@outdir = ENV['RIPDIRU_OUTDIR'] || "#{ENV['HOME']}/Music/Radiru"
|
29
29
|
@bitrate = ENV['RIPDIRU_BITRATE'] || '48k'
|
30
30
|
end
|
31
31
|
|
data/lib/ripdiru/version.rb
CHANGED