rget 2.3.6 → 2.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/hibiki.rb +1 -1
- data/lib/nicovideo.rb +1 -1
- data/lib/onsen.rb +1 -1
- data/lib/podcast.rb +3 -0
- data/lib/seaside-c.rb +1 -1
- data/lib/uliza.rb +1 -1
- data/lib/webradio.rb +1 -1
- data/lib/youtube.rb +1 -1
- data/rget.gemspec +1 -1
- data/rget.yaml +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a877b42365002955c5169d2a83ec9a00a8f11d
|
4
|
+
data.tar.gz: cec1d6d2876950731bcc36c69ee877ad64e7b24b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b795a6a4cb07bd3e5bb8a444e40b7daf3d74139328d0cd01dfd0d3769a111ef5359fd5f0661f766b403a928419943b4f9d962cf62cc7e79967b290b18df762d
|
7
|
+
data.tar.gz: 712955e5b17362dedf5b473cdd600f2dcb256fac07754e4625293790c926660f2636e3420d28570ee38379c08b07707dfc85cc7cc7f39a8ab7357c3c7e41be3c
|
data/.gitignore
CHANGED
data/lib/hibiki.rb
CHANGED
data/lib/nicovideo.rb
CHANGED
@@ -22,7 +22,7 @@ class Nicovideo < WebRadio
|
|
22
22
|
serial = video.title.scan(/(?:[#第]|[ ]EP|track-)(\d+)|/).flatten.compact[0].to_i
|
23
23
|
@file = "#{name}##{'%02d' % serial}.#{video.type}"
|
24
24
|
@mp3_file = @file.sub(/\....$/, '.mp3')
|
25
|
-
|
25
|
+
mp3nize(@file, @mp3_file) do
|
26
26
|
open(@file, 'wb:ASCII-8BIT') do |o|
|
27
27
|
video.get_video do |body|
|
28
28
|
print '.'
|
data/lib/onsen.rb
CHANGED
@@ -20,7 +20,7 @@ private
|
|
20
20
|
raise NotFoundError.new("no radio program in #{program_id}.")
|
21
21
|
end
|
22
22
|
mp3_file = "#{name}##{serial}.mp3"
|
23
|
-
|
23
|
+
mp3nize(mp3_file, mp3_file, false) do
|
24
24
|
open(mp3_file, 'wb:ASCII-8BIT') do |mp3|
|
25
25
|
mp3.write open(mp3_url, 'rb:ASCII-8BIT', &:read)
|
26
26
|
end
|
data/lib/podcast.rb
CHANGED
@@ -14,6 +14,9 @@ class Podcast
|
|
14
14
|
name = rss.channel.title unless name
|
15
15
|
episode = rss.items.first
|
16
16
|
serial = episode.link.scan(%r|\d+[^/\.]*|).flatten.first
|
17
|
+
if serial.to_i > 2000 # may be year
|
18
|
+
serial = episode.pubDate.strftime('%Y%m%d')
|
19
|
+
end
|
17
20
|
unless serial
|
18
21
|
puts "fail: recent episode not found."
|
19
22
|
return
|
data/lib/seaside-c.rb
CHANGED
@@ -14,7 +14,7 @@ class SeasideCommnunications < WebRadio
|
|
14
14
|
|
15
15
|
@wma_file = "#{name}##{serial}.wma"
|
16
16
|
@mp3_file = @wma_file.sub(/\.wma$/, '.mp3')
|
17
|
-
|
17
|
+
mp3nize(@wma_file, @mp3_file) do
|
18
18
|
open(@wma_file, 'wb:ASCII-8BIT') do |wma|
|
19
19
|
wma.write(open(wma_url, &:read))
|
20
20
|
end
|
data/lib/uliza.rb
CHANGED
@@ -6,7 +6,7 @@ private
|
|
6
6
|
serial = html.scan(serial_pattern).flatten.sort{|a,b| a.to_i <=> b.to_i}.last
|
7
7
|
@m4a_file = "#{name}##{serial}.m4a"
|
8
8
|
@mp3_file = @m4a_file.sub(/\.m4a$/, '.mp3')
|
9
|
-
|
9
|
+
mp3nize(@m4a_file, @mp3_file) do
|
10
10
|
m3u_meta2 = html.scan(m3u_pattern).flatten.sort.last
|
11
11
|
unless m3u_meta2
|
12
12
|
raise WebRadio::DownloadError.new("recent radio program not found.")
|
data/lib/webradio.rb
CHANGED
data/lib/youtube.rb
CHANGED
@@ -15,7 +15,7 @@ class YouTube < WebRadio
|
|
15
15
|
serial = list.keys.sort.last
|
16
16
|
@src = "#{name}##{'%02d' % serial}.mp4"
|
17
17
|
@dst = "#{name}##{'%02d' % serial}.mp3"
|
18
|
-
|
18
|
+
mp3nize(@src, @dst) do
|
19
19
|
player_url = "https://www.youtube.com#{list[serial]}".sub(/&.*/, '')
|
20
20
|
result = Open3.capture3("viddl-rb -u -q '*:*:mp4' '#{player_url}'")
|
21
21
|
video_url = result[0].split.last.chomp
|
data/rget.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rget"
|
7
|
-
spec.version = "2.3.
|
7
|
+
spec.version = "2.3.7"
|
8
8
|
spec.authors = ["TADA Tadashi"]
|
9
9
|
spec.email = ["t@tdtds.jp"]
|
10
10
|
spec.description = %q{Downloading newest radio programs on the web. Supported radio stations are hibiki, animate, onsen, seaside communications, niconico and youtube.}
|
data/rget.yaml
CHANGED
@@ -23,9 +23,17 @@ programs:
|
|
23
23
|
label: rebuildfm
|
24
24
|
podcast: true
|
25
25
|
suzakinishi:
|
26
|
-
desc:
|
26
|
+
desc: 洲崎西
|
27
27
|
url: http://seaside-c.jp/program/suzakinishi/
|
28
28
|
label: 洲崎西
|
29
|
+
ssc:
|
30
|
+
desc: 春佳・彩花のSSちゃんねる
|
31
|
+
url: http://seaside-c.jp/program/ssc/
|
32
|
+
label: 春佳・彩花のSSちゃんねる
|
33
|
+
remake:
|
34
|
+
desc: りめいく!
|
35
|
+
url: http://seaside-c.jp/program/remake/
|
36
|
+
label: りめいく!
|
29
37
|
nakamuland:
|
30
38
|
desc: なかむランド
|
31
39
|
url: http://nakamuland.net/
|
@@ -78,3 +86,8 @@ programs:
|
|
78
86
|
desc: ミチルとザックのプラメモラジオ
|
79
87
|
url: http://hibiki-radio.jp/description/plamemo
|
80
88
|
label: プラメモ
|
89
|
+
amina1422:
|
90
|
+
desc: 佐藤亜美菜のこの世に小文字はいりません!
|
91
|
+
url: http://feeds.feedburner.com/amina1422
|
92
|
+
label: よにこも
|
93
|
+
podcast: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|