rget 2.3.9 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nicovideo.rb +2 -1
- data/rget.gemspec +1 -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: a24d1551460816c90d72a95e53342e37607ad9d7
|
4
|
+
data.tar.gz: 7aa874b01ddb243ea789b3ce6aa57d1e8ec3184f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a75f8d7a4ae78b4434ed0cad70f5f237fcee66f22f2a3f5c6e051797f02a022bdef3bd6602d50792014e103b37cd66b4272eb2b2c10fa1f080177c5cc753b26
|
7
|
+
data.tar.gz: d5eabb9923843c6bd2fb41dd3f74516f47e8620012bf1704a5a6cd7aea2069541804769228dd27be1ffcb89c35db36a0c5b7c3ec4856dfd34bf801f2f0cb85be
|
data/lib/nicovideo.rb
CHANGED
@@ -20,7 +20,8 @@ class Nicovideo < WebRadio
|
|
20
20
|
player_url = get_player_url(@url)
|
21
21
|
video = @nico.video(Pathname(URI(player_url).path).basename.to_s)
|
22
22
|
serial = video.title.scan(/(?:[#第]|[ ]EP|track-)(\d+)|/).flatten.compact[0].to_i
|
23
|
-
|
23
|
+
appendix = video.title =~ /おまけ/ ? 'a' : ''
|
24
|
+
@file = "#{name}##{'%02d' % serial}#{appendix}.#{video.type}"
|
24
25
|
@mp3_file = @file.sub(/\....$/, '.mp3')
|
25
26
|
mp3nize(@file, @mp3_file) do
|
26
27
|
open(@file, 'wb:ASCII-8BIT') do |o|
|
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.
|
7
|
+
spec.version = "2.4.0"
|
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.}
|
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.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|