rget 2.7.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webradio.rb +0 -3
- data/rget.gemspec +2 -3
- metadata +3 -18
- data/lib/youtube.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10cd0f135ca0ddd5e5322c069c320775ce5c8717
|
4
|
+
data.tar.gz: 06e6571cea72e059ec636366861db25530ec3229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45b35dae097f34fbed2f2db05bd352d684da1c6b36b25f227c68276cc8a439181eccf07c43fa0d0e7e8d51045650877dd2fa32ade433884f41147ed889521f7d
|
7
|
+
data.tar.gz: ca944b264223d68d1d1887a8c46d9a8652dbdf85b4569b730eb1d41b104c2e9e7ae9180b58a1e879eb8446c08508d7712fb17d6e1c17c15e778fd17d884f79f0
|
data/lib/webradio.rb
CHANGED
data/rget.gemspec
CHANGED
@@ -4,10 +4,10 @@ $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 = "
|
7
|
+
spec.version = "3.0.0"
|
8
8
|
spec.authors = ["TADA Tadashi"]
|
9
9
|
spec.email = ["t@tdtds.jp"]
|
10
|
-
spec.description = %q{Downloading newest radio programs on the web. Supported radio stations are hibiki, animate, onsen, seaside communications
|
10
|
+
spec.description = %q{Downloading newest radio programs on the web. Supported radio stations are hibiki, animate, onsen, seaside communications and niconico.}
|
11
11
|
spec.summary = %q{Downloading newest radio programs on the web.}
|
12
12
|
spec.homepage = "https://bitbucket.org/tdtds/rget"
|
13
13
|
spec.license = "GPL"
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_runtime_dependency "thor"
|
21
21
|
spec.add_runtime_dependency "nokogiri"
|
22
22
|
spec.add_runtime_dependency "niconico", ">= 1.8.0"
|
23
|
-
spec.add_runtime_dependency "viddl-rb"
|
24
23
|
spec.add_runtime_dependency "pit"
|
25
24
|
spec.add_runtime_dependency "dropbox-api", ">= 0.4.6"
|
26
25
|
|
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
|
+
version: 3.0.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:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.8.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: viddl-rb
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: pit
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +123,7 @@ dependencies:
|
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
125
|
description: Downloading newest radio programs on the web. Supported radio stations
|
140
|
-
are hibiki, animate, onsen, seaside communications
|
126
|
+
are hibiki, animate, onsen, seaside communications and niconico.
|
141
127
|
email:
|
142
128
|
- t@tdtds.jp
|
143
129
|
executables:
|
@@ -162,7 +148,6 @@ files:
|
|
162
148
|
- lib/seaside-c.rb
|
163
149
|
- lib/uliza.rb
|
164
150
|
- lib/webradio.rb
|
165
|
-
- lib/youtube.rb
|
166
151
|
- rget.gemspec
|
167
152
|
- rget.yaml
|
168
153
|
homepage: https://bitbucket.org/tdtds/rget
|
data/lib/youtube.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'webradio'
|
2
|
-
require 'open-uri'
|
3
|
-
require 'nokogiri'
|
4
|
-
|
5
|
-
class YouTube < WebRadio
|
6
|
-
def download(name)
|
7
|
-
list = {}
|
8
|
-
playlist = Nokogiri(open(@url, &:read))
|
9
|
-
playlist.css('#pl-video-list tr').each do |tr|
|
10
|
-
title = tr.attr('data-title')
|
11
|
-
serial = title.scan(/(?:[#第]| EP)(\d+)|/).flatten.compact[0].to_i
|
12
|
-
video_url = tr.css('a').attr('href').to_s
|
13
|
-
list[serial] = video_url
|
14
|
-
end
|
15
|
-
serial = list.keys.sort.last
|
16
|
-
@src = "#{name}##{'%02d' % serial}.mp4"
|
17
|
-
@dst = "#{name}##{'%02d' % serial}.mp3"
|
18
|
-
mp3nize(@src, @dst) do
|
19
|
-
player_url = "https://www.youtube.com#{list[serial]}".sub(/&.*/, '')
|
20
|
-
result = Open3.capture3("viddl-rb -u -q '*:*:mp4' '#{player_url}'")
|
21
|
-
video_url = result[0].split.last.chomp
|
22
|
-
open(@src, 'wb:ASCII-8BIT') do |o|
|
23
|
-
o.write open(video_url, 'r:ASCII-8BIT', &:read)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|