rget 2.3.9 → 2.4.0

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/nicovideo.rb +2 -1
  3. data/rget.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fed62661915aa43233d15d58be247addf8d9e7e
4
- data.tar.gz: 845fbea83c06b5e2e6fd3b9a834b96c09dd01eb1
3
+ metadata.gz: a24d1551460816c90d72a95e53342e37607ad9d7
4
+ data.tar.gz: 7aa874b01ddb243ea789b3ce6aa57d1e8ec3184f
5
5
  SHA512:
6
- metadata.gz: 12000b0615d5b9c71b43a6640e89645db813b6935f47f3f088eb898c8aa0dbe03d96030c3b49e1e55ab1c906f298a65a07a393b745d078fbbc6e86fe27846094
7
- data.tar.gz: 7a13592d4b925d2abdbca9b5494e6b15fd17a9348eaf22e617e4a8ad053085f3004803f064cc3e01a914a9dfa1a49f451d19caa64f21f2e6da149a06bad2a973
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
- @file = "#{name}##{'%02d' % serial}.#{video.type}"
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.3.9"
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.3.9
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-05 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor