rget 4.7.5 → 4.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -0
- data/lib/hibiki.rb +3 -6
- data/rget.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0fd38e56606b4cab53195c0fdfbc513bb9c111059a8f2d4b8901635f05fd4ef
|
4
|
+
data.tar.gz: 91557b05c0841059bbacf5293a8ca7adb63bae5a384c27094e5564e5615aceec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5b31cbea8c7f77224820fb345f344e0573c4758db41756908d295b8f627c19b51faacb51bac08fee3ba233fea239758d408d2a879613061c2c0e94aa821ca9
|
7
|
+
data.tar.gz: 2ae8d69829a71ada3b512ea861ce3ba2156e1dfe038c9474cbe3736c57b44a6937276611f5766118395a39f5820246af0e7e1ed47d37cc90b2255ba472d6667c
|
data/.travis.yml
CHANGED
data/lib/hibiki.rb
CHANGED
@@ -55,10 +55,8 @@ private
|
|
55
55
|
|
56
56
|
video_info = JSON.parse(agent.get("https://vcms-api.hibiki-radio.jp/api/v1/videos/play_check?video_id=#{video_id}").body,{:symbolize_names => true})
|
57
57
|
playlist_url = video_info[:playlist_url]
|
58
|
-
|
59
|
-
|
60
|
-
base_url = URI.parse(m3u8_url)
|
61
|
-
base_path = File.dirname(base_url.path)
|
58
|
+
meta_url = agent.get(playlist_url).body.scan(/http.*/).flatten.first
|
59
|
+
m3u8_url = URI(Hash[URI::decode_www_form(URI(meta_url).query)]['url2'])
|
62
60
|
|
63
61
|
m3u8 = agent.get(m3u8_url).body
|
64
62
|
key_url = m3u8.scan(/URI="(.*)"/).flatten.first
|
@@ -83,8 +81,7 @@ private
|
|
83
81
|
mp3nize(ts_file, mp3_file) do
|
84
82
|
open(ts_file, 'wb:ASCII-8BIT') do |ts|
|
85
83
|
tses.each do |file|
|
86
|
-
|
87
|
-
ts.write(decoder.update(agent.get_file(base_url)))
|
84
|
+
ts.write(decoder.update(agent.get_file(m3u8_url.merge(file))))
|
88
85
|
end
|
89
86
|
ts.write(decoder.final)
|
90
87
|
end
|
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 = "4.7.
|
7
|
+
spec.version = "4.7.6"
|
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, onsen, niconico, freshlive, himalaya and asobi store.}
|
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: 4.7.
|
4
|
+
version: 4.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
206
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.7.
|
207
|
+
rubygems_version: 2.7.8
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Downloading newest radio programs on the web.
|