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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c314c0cc43b10425e854cf72250fbda17ec7ff0b
4
- data.tar.gz: e1def2c8c59cefdefbd30f067db66581e6773f6a
3
+ metadata.gz: 30a877b42365002955c5169d2a83ec9a00a8f11d
4
+ data.tar.gz: cec1d6d2876950731bcc36c69ee877ad64e7b24b
5
5
  SHA512:
6
- metadata.gz: 9bf4734ec1a293253c973914ad970e4e7d504fd5595b9832eff55929f65f4c4d3fe73d297c6fcb4124b46cf90f667145d34d487138e9735c2bd492c18b9920d0
7
- data.tar.gz: 47a1e1a77cb2929b3a2074f1f065b8a0627f563eafe708eb61b2fc5863f0c43290af7cff4af69f07e2f3671ead09e55a008a23d3114d6b7b3a548736e3fe6b91
6
+ metadata.gz: 6b795a6a4cb07bd3e5bb8a444e40b7daf3d74139328d0cd01dfd0d3769a111ef5359fd5f0661f766b403a928419943b4f9d962cf62cc7e79967b290b18df762d
7
+ data.tar.gz: 712955e5b17362dedf5b473cdd600f2dcb256fac07754e4625293790c926660f2636e3420d28570ee38379c08b07707dfc85cc7cc7f39a8ab7357c3c7e41be3c
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ vendor/bundle
20
20
  *.mp3
21
21
  *.wma
22
22
  *.mp4
23
+ *.*~
data/lib/hibiki.rb CHANGED
@@ -53,7 +53,7 @@ private
53
53
 
54
54
  decoder.decrypt
55
55
 
56
- mp3ize(ts_file, mp3_file) do
56
+ mp3nize(ts_file, mp3_file) do
57
57
  open(ts_file, 'wb:ASCII-8BIT') do |ts|
58
58
  tses.each do |file|
59
59
  base_url.path = "#{base_path}/#{file}"
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
- mp3ize(@file, @mp3_file) do
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
- mp3ize(mp3_file, mp3_file, false) do
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
- mp3ize(@wma_file, @mp3_file) do
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
- mp3ize(@m4a_file, @mp3_file) do
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
@@ -47,7 +47,7 @@ class WebRadio
47
47
  end
48
48
 
49
49
  private
50
- def mp3ize(src, dst, delete_src = true)
50
+ def mp3nize(src, dst, delete_src = true)
51
51
  if @options.mp3
52
52
  if exist?(dst)
53
53
  puts "#{dst} is existent, skipped."
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
- mp3ize(@src, @dst) do
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.6"
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.6
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-15 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor