rget 4.7.8 → 4.7.9

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. checksums.yaml +4 -4
  2. data/lib/hibiki.rb +1 -2
  3. data/rget.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2d7fffaf7e839477db640331a09ef47148ba36c879b683601b1ca1f1ee22eed
4
- data.tar.gz: b4e028ab5c2e8f75d36d44b32311843ae8ce7678540c88cebafeae265762b6f1
3
+ metadata.gz: b85c110b505929985cd92908686b3a2664ca59d7fc6f63518f4e390d447c48c4
4
+ data.tar.gz: 2d5ef13d9c67cea85236853a02b4d12366eb08fb5e3647a09a6362038d651f89
5
5
  SHA512:
6
- metadata.gz: 5d1df8ca5f5094f915750b158ecff4f8c173d301e7e047d35db0312fd0b4faf1f5f86e7e176afaa338a550237f7dea35966bd84bfaca885a1459142ba54f3969
7
- data.tar.gz: da0f7313d1928feaf86b459550c9bf80f5af9fe9d28815466cb7137c0e38653d682ec0e381db0ccd213fe5d41b7a9e6665b8255138bb5d94503a52f8e9150297
6
+ metadata.gz: 5aa6d44988bcf464f4cead0ff376a5d855c2613af012ea543f5f188b6ba0e02d842fc9c35ac5fb555b7873c01818cdfb0a231875a76234da08c7c3d49cef2c84
7
+ data.tar.gz: 5f2ca5cfd3a1f47ee091f08b9de7f6312ac42427b1110ab6c1ee9c017683ef337b84e767b62363fcce5e9d4debf12a6f43364edd6ca8eb327996c19d9d5badf5
@@ -55,8 +55,7 @@ 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
- 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'])
58
+ m3u8_url = URI(agent.get(playlist_url).body.scan(/http.*/).flatten.first)
60
59
 
61
60
  m3u8 = agent.get(m3u8_url).body
62
61
  key_url = m3u8.scan(/URI="(.*)"/).flatten.first
@@ -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.8"
7
+ spec.version = "4.7.9"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rget
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.8
4
+ version: 4.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi