ehbrs-tools 0.32.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -6
- data/Gemfile.lock +155 -150
- data/lib/ehbrs/tools/runner/vg/ips.rb +9 -2
- data/lib/ehbrs/tools/runner/videos/opensubtitles.rb +69 -0
- data/lib/ehbrs/tools/version.rb +1 -1
- data/spec/lib/ehbrs/tools/runner/videos/probe_spec_files/fixed.target.yaml +3 -3
- data/spec/lib/ehbrs/tools/runner/videos/unsupported_spec_files/dts_audio.probe.yaml +3 -2
- metadata +21 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec0a90959fd8dc48f9c799b20af55016cd219efae701640eb2060ff55ceeab9
|
4
|
+
data.tar.gz: 754779dd2ae2cce3b6495793c975027b6f0240997b42688fbd9d8935caba7920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d1cf8696c59243b3b3756830ec520d762b9fce5f5ae96a94a32c95d001d7420d1fdfd2d14c771208bb3163d3761b5b312383b61a29f48c652a8d63529a9cd3
|
7
|
+
data.tar.gz: c9225832e1bf272b8c1a8be6bafedce2eaea075c6564d04b0912ce78fc6d63d43571c786bb65202b8651b89f3bf263dff6a42962589f9a0b52d9d40e9f01dbe1
|
data/Gemfile
CHANGED
@@ -4,12 +4,11 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
gemspec
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
next unless ::File.directory?(dir)
|
7
|
+
::Dir["#{::File.join(__dir__, 'sub')}/*"].each do |dir|
|
8
|
+
next unless ::File.exist?(::File.join(dir, "#{::File.basename(dir)}.gemspec"))
|
10
9
|
|
11
|
-
|
12
|
-
gem basename, path: "#{gems_subdir}/#{basename}"
|
10
|
+
gem ::File.basename(dir), path: dir, require: false
|
13
11
|
end
|
14
12
|
|
15
|
-
|
13
|
+
local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
|
14
|
+
eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
|
data/Gemfile.lock
CHANGED
@@ -1,51 +1,82 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/livelink/httpclient.git
|
3
|
-
revision: 3efedc65787366d4c1936ea0c0247202a5a2ad99
|
4
|
-
specs:
|
5
|
-
httpclient (2.8.5)
|
6
|
-
|
7
1
|
PATH
|
8
2
|
remote: .
|
9
3
|
specs:
|
10
|
-
ehbrs-tools (0.
|
11
|
-
avm-tools (~> 0.
|
12
|
-
eac_cli (~> 0.
|
13
|
-
eac_ruby_utils (~> 0.
|
14
|
-
ehbrs_ruby_utils (~> 0.
|
4
|
+
ehbrs-tools (0.34.0)
|
5
|
+
avm-tools (~> 0.145, >= 0.145.1)
|
6
|
+
eac_cli (~> 0.30, >= 0.30.1)
|
7
|
+
eac_ruby_utils (~> 0.112)
|
8
|
+
ehbrs_ruby_utils (~> 0.20)
|
15
9
|
filesize (~> 0.2)
|
16
10
|
inifile (~> 3.0)
|
17
11
|
os (~> 1.1, >= 1.1.4)
|
18
|
-
telegram-bot-ruby (~> 0.
|
12
|
+
telegram-bot-ruby (~> 0.23)
|
13
|
+
|
14
|
+
PATH
|
15
|
+
remote: sub/aranha-parsers
|
16
|
+
specs:
|
17
|
+
aranha-parsers (0.15.0)
|
18
|
+
activesupport (>= 4.0.0)
|
19
|
+
addressable (~> 2.8, >= 2.8.1)
|
20
|
+
eac_ruby_utils (~> 0.112)
|
21
|
+
faraday (~> 2.7, >= 2.7.4)
|
22
|
+
faraday-gzip (~> 0.1)
|
23
|
+
nokogiri (~> 1.14)
|
24
|
+
ofx-parser (~> 1.1)
|
19
25
|
|
20
26
|
PATH
|
21
27
|
remote: sub/aranha-selenium
|
22
28
|
specs:
|
23
|
-
aranha-selenium (0.
|
24
|
-
eac_ruby_utils (~> 0.
|
29
|
+
aranha-selenium (0.5.0)
|
30
|
+
eac_ruby_utils (~> 0.106, >= 0.106.1)
|
25
31
|
selenium-webdriver (~> 3.142, >= 3.142.7)
|
26
32
|
|
33
|
+
PATH
|
34
|
+
remote: sub/aranha
|
35
|
+
specs:
|
36
|
+
aranha (0.19.0)
|
37
|
+
aranha-parsers (~> 0.15)
|
38
|
+
aranha-selenium (~> 0.5)
|
39
|
+
eac_ruby_utils (~> 0.112)
|
40
|
+
|
41
|
+
PATH
|
42
|
+
remote: sub/eac_cli
|
43
|
+
specs:
|
44
|
+
eac_cli (0.30.1)
|
45
|
+
colorize (~> 0.8, >= 0.8.1)
|
46
|
+
eac_config (~> 0.12)
|
47
|
+
eac_ruby_utils (~> 0.112)
|
48
|
+
|
27
49
|
PATH
|
28
50
|
remote: sub/eac_docker
|
29
51
|
specs:
|
30
|
-
eac_docker (0.
|
31
|
-
eac_ruby_utils (~> 0.
|
32
|
-
eac_templates (~> 0.3, >= 0.3.
|
52
|
+
eac_docker (0.6.0)
|
53
|
+
eac_ruby_utils (~> 0.112)
|
54
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
55
|
+
|
56
|
+
PATH
|
57
|
+
remote: sub/eac_rest
|
58
|
+
specs:
|
59
|
+
eac_rest (0.7.0)
|
60
|
+
eac_fs (~> 0.16)
|
61
|
+
eac_ruby_utils (~> 0.112)
|
62
|
+
faraday (~> 2.7, >= 2.7.4)
|
63
|
+
faraday-multipart (~> 1.0, >= 1.0.4)
|
33
64
|
|
34
65
|
PATH
|
35
66
|
remote: sub/eac_ruby_base0
|
36
67
|
specs:
|
37
|
-
eac_ruby_base0 (0.
|
38
|
-
avm-eac_ruby_base1 (~> 0.
|
39
|
-
eac_cli (~> 0.
|
40
|
-
eac_fs (~> 0.
|
41
|
-
eac_ruby_utils (~> 0.
|
68
|
+
eac_ruby_base0 (0.17.3)
|
69
|
+
avm-eac_ruby_base1 (~> 0.29)
|
70
|
+
eac_cli (~> 0.30, >= 0.30.1)
|
71
|
+
eac_fs (~> 0.16)
|
72
|
+
eac_ruby_utils (~> 0.112)
|
42
73
|
|
43
74
|
PATH
|
44
75
|
remote: sub/eac_ruby_utils
|
45
76
|
specs:
|
46
|
-
eac_ruby_utils (0.
|
77
|
+
eac_ruby_utils (0.112.0)
|
47
78
|
activesupport (>= 4, < 7)
|
48
|
-
addressable (~> 2.8)
|
79
|
+
addressable (~> 2.8, >= 2.8.1)
|
49
80
|
bundler
|
50
81
|
filesize (~> 0.2)
|
51
82
|
net-ssh (~> 4.2)
|
@@ -60,26 +91,20 @@ PATH
|
|
60
91
|
PATH
|
61
92
|
remote: sub/ehbrs_ruby_utils
|
62
93
|
specs:
|
63
|
-
ehbrs_ruby_utils (0.
|
64
|
-
aranha
|
65
|
-
|
66
|
-
|
67
|
-
|
94
|
+
ehbrs_ruby_utils (0.20.0)
|
95
|
+
aranha (~> 0.19)
|
96
|
+
aranha-parsers (~> 0.15)
|
97
|
+
avm (~> 0.62)
|
98
|
+
eac_fs (~> 0.16)
|
99
|
+
eac_ruby_utils (~> 0.112)
|
68
100
|
eac_templates (~> 0.3, >= 0.3.2)
|
69
|
-
taglib-ruby (~> 1.1, >= 1.1.
|
101
|
+
taglib-ruby (~> 1.1, >= 1.1.3)
|
70
102
|
ultimate_lyrics (~> 0.1, >= 0.1.3)
|
71
103
|
|
72
|
-
PATH
|
73
|
-
remote: sub/ultimate_lyrics
|
74
|
-
specs:
|
75
|
-
ultimate_lyrics (0.1.3)
|
76
|
-
aranha-parsers (~> 0.10)
|
77
|
-
eac_ruby_utils (~> 0.102, >= 0.102.1)
|
78
|
-
|
79
104
|
GEM
|
80
105
|
remote: https://rubygems.org/
|
81
106
|
specs:
|
82
|
-
activesupport (6.1.
|
107
|
+
activesupport (6.1.7.2)
|
83
108
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
84
109
|
i18n (>= 1.6, < 2)
|
85
110
|
minitest (>= 5.1)
|
@@ -87,59 +112,55 @@ GEM
|
|
87
112
|
zeitwerk (~> 2.3)
|
88
113
|
addressable (2.8.1)
|
89
114
|
public_suffix (>= 2.0.2, < 6.0)
|
90
|
-
aranha-parsers (0.14.2)
|
91
|
-
activesupport (~> 6.1.6, >= 6.1.6.1)
|
92
|
-
addressable (~> 2.8, >= 2.8.1)
|
93
|
-
curb (~> 0.9, >= 0.9.11)
|
94
|
-
eac_ruby_utils (~> 0.102, >= 0.102.1)
|
95
|
-
faraday-gzip (~> 0.1)
|
96
|
-
faraday_middleware (~> 1.2)
|
97
|
-
nokogiri (~> 1.13, >= 1.13.8)
|
98
|
-
ofx-parser (~> 1.1)
|
99
115
|
ast (2.4.2)
|
100
|
-
avm (0.
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
116
|
+
avm (0.62.0)
|
117
|
+
aranha-parsers (~> 0.14, >= 0.14.4)
|
118
|
+
eac_cli (~> 0.30)
|
119
|
+
eac_config (~> 0.12)
|
120
|
+
eac_docker (~> 0.5)
|
121
|
+
eac_fs (~> 0.16)
|
122
|
+
eac_git (~> 0.14)
|
123
|
+
eac_ruby_utils (~> 0.111)
|
124
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
107
125
|
filesize (~> 0.2)
|
108
126
|
htmlbeautifier (~> 1.4, >= 1.4.2)
|
109
127
|
minitar (~> 0.9)
|
110
|
-
avm-eac_generic_base0 (0.
|
111
|
-
avm (~> 0.
|
112
|
-
eac_ruby_utils (~> 0.
|
113
|
-
avm-eac_ruby_base1 (0.
|
114
|
-
avm (~> 0.
|
115
|
-
avm-eac_generic_base0 (~> 0.
|
116
|
-
eac_ruby_utils (~> 0.
|
117
|
-
avm-eac_ubuntu_base0 (0.
|
118
|
-
avm (~> 0.
|
119
|
-
eac_ruby_utils (~> 0.
|
120
|
-
eac_templates (~> 0.3)
|
121
|
-
avm-files (0.
|
122
|
-
avm (~> 0.
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
avm
|
136
|
-
avm-
|
128
|
+
avm-eac_generic_base0 (0.10.0)
|
129
|
+
avm (~> 0.61)
|
130
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
131
|
+
avm-eac_ruby_base1 (0.29.0)
|
132
|
+
avm (~> 0.61)
|
133
|
+
avm-eac_generic_base0 (~> 0.10)
|
134
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
135
|
+
avm-eac_ubuntu_base0 (0.4.0)
|
136
|
+
avm (~> 0.57)
|
137
|
+
eac_ruby_utils (~> 0.109)
|
138
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
139
|
+
avm-files (0.6.0)
|
140
|
+
avm (~> 0.52)
|
141
|
+
eac_cli (~> 0.28)
|
142
|
+
eac_fs (~> 0.12, >= 0.12.3)
|
143
|
+
eac_ruby_utils (~> 0.106)
|
144
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
145
|
+
avm-git (0.12.0)
|
146
|
+
avm (~> 0.61)
|
147
|
+
avm-files (~> 0.6)
|
148
|
+
eac_git (~> 0.14)
|
149
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
150
|
+
git (~> 1.13, >= 1.13.1)
|
151
|
+
avm-tools (0.145.1)
|
152
|
+
aranha-parsers (~> 0.14, >= 0.14.4)
|
153
|
+
avm (~> 0.62)
|
154
|
+
avm-eac_ruby_base1 (~> 0.29)
|
155
|
+
avm-eac_ubuntu_base0 (~> 0.4)
|
156
|
+
avm-files (~> 0.6)
|
157
|
+
avm-git (~> 0.12)
|
137
158
|
clipboard (~> 1.3, >= 1.3.6)
|
138
159
|
curb (~> 0.9, >= 0.9.11)
|
139
|
-
eac_git (~> 0.
|
140
|
-
eac_ruby_base0 (~> 0.
|
141
|
-
eac_templates (~> 0.3, >= 0.3.
|
142
|
-
git (~> 1.
|
160
|
+
eac_git (~> 0.14)
|
161
|
+
eac_ruby_base0 (~> 0.17, >= 0.17.2)
|
162
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
163
|
+
git (~> 1.13, >= 1.13.1)
|
143
164
|
ruby-progressbar (~> 1.11)
|
144
165
|
axiom-types (0.1.1)
|
145
166
|
descendants_tracker (~> 0.0.4)
|
@@ -150,106 +171,84 @@ GEM
|
|
150
171
|
coercible (1.0.0)
|
151
172
|
descendants_tracker (~> 0.0.1)
|
152
173
|
colorize (0.8.1)
|
153
|
-
concurrent-ruby (1.
|
174
|
+
concurrent-ruby (1.2.0)
|
154
175
|
content-type (0.0.2)
|
155
176
|
parslet (~> 2.0)
|
156
177
|
curb (0.9.11)
|
157
178
|
descendants_tracker (0.0.4)
|
158
179
|
thread_safe (~> 0.3, >= 0.3.1)
|
159
180
|
diff-lcs (1.5.0)
|
160
|
-
dry-inflector (0.
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
ruby-filemagic
|
172
|
-
eac_git (0.12.2)
|
173
|
-
eac_ruby_utils (~> 0.83)
|
174
|
-
parseconfig (~> 1.0, >= 1.0.8)
|
181
|
+
dry-inflector (1.0.0)
|
182
|
+
eac_config (0.12.0)
|
183
|
+
addressable (~> 2.8, >= 2.8.1)
|
184
|
+
eac_ruby_utils (~> 0.107)
|
185
|
+
eac_fs (0.16.0)
|
186
|
+
content-type (~> 0.0, >= 0.0.2)
|
187
|
+
eac_ruby_utils (~> 0.107, >= 0.107.1)
|
188
|
+
ruby-filemagic (~> 0.7, >= 0.7.3)
|
189
|
+
eac_git (0.14.0)
|
190
|
+
eac_ruby_utils (~> 0.107)
|
191
|
+
parseconfig (~> 1.1, >= 1.1.2)
|
175
192
|
eac_ruby_gem_support (0.5.1)
|
176
193
|
eac_ruby_utils (~> 0.74)
|
177
194
|
rspec (~> 3.9)
|
178
195
|
rubocop (~> 0.80.1)
|
179
196
|
rubocop-rails (~> 2.4.2)
|
180
197
|
rubocop-rspec (~> 1.38.1)
|
181
|
-
faraday (
|
182
|
-
faraday-
|
183
|
-
faraday-em_synchrony (~> 1.0)
|
184
|
-
faraday-excon (~> 1.1)
|
185
|
-
faraday-httpclient (~> 1.0)
|
186
|
-
faraday-multipart (~> 1.0)
|
187
|
-
faraday-net_http (~> 1.0)
|
188
|
-
faraday-net_http_persistent (~> 1.0)
|
189
|
-
faraday-patron (~> 1.0)
|
190
|
-
faraday-rack (~> 1.0)
|
191
|
-
faraday-retry (~> 1.0)
|
198
|
+
faraday (2.7.4)
|
199
|
+
faraday-net_http (>= 2.0, < 3.1)
|
192
200
|
ruby2_keywords (>= 0.0.4)
|
193
|
-
faraday-em_http (1.0.0)
|
194
|
-
faraday-em_synchrony (1.0.0)
|
195
|
-
faraday-excon (1.1.0)
|
196
201
|
faraday-gzip (0.1.0)
|
197
202
|
faraday (>= 1.0)
|
198
203
|
zlib (~> 2.1)
|
199
|
-
faraday-httpclient (1.0.1)
|
200
204
|
faraday-multipart (1.0.4)
|
201
205
|
multipart-post (~> 2)
|
202
|
-
faraday-net_http (
|
203
|
-
faraday-net_http_persistent (1.2.0)
|
204
|
-
faraday-patron (1.0.0)
|
205
|
-
faraday-rack (1.0.0)
|
206
|
-
faraday-retry (1.0.3)
|
207
|
-
faraday_middleware (1.2.0)
|
208
|
-
faraday (~> 1.0)
|
206
|
+
faraday-net_http (3.0.2)
|
209
207
|
filesize (0.2.0)
|
210
|
-
git (1.
|
208
|
+
git (1.13.1)
|
211
209
|
addressable (~> 2.8)
|
212
210
|
rchardet (~> 1.8)
|
213
211
|
hpricot (0.8.6)
|
214
212
|
htmlbeautifier (1.4.2)
|
213
|
+
httpclient (2.8.3)
|
215
214
|
i18n (1.12.0)
|
216
215
|
concurrent-ruby (~> 1.0)
|
217
216
|
ice_nine (0.11.2)
|
218
217
|
inifile (3.0.0)
|
219
218
|
jaro_winkler (1.5.4)
|
220
219
|
minitar (0.9)
|
221
|
-
minitest (5.
|
222
|
-
multipart-post (2.
|
220
|
+
minitest (5.17.0)
|
221
|
+
multipart-post (2.3.0)
|
223
222
|
net-ssh (4.2.0)
|
224
|
-
nokogiri (1.
|
223
|
+
nokogiri (1.14.0-x86_64-linux)
|
225
224
|
racc (~> 1.4)
|
226
225
|
ofx-parser (1.1.0)
|
227
226
|
hpricot (>= 0.6)
|
228
227
|
os (1.1.4)
|
229
228
|
parallel (1.22.1)
|
230
229
|
parseconfig (1.1.2)
|
231
|
-
parser (3.
|
230
|
+
parser (3.2.0.0)
|
232
231
|
ast (~> 2.4.1)
|
233
232
|
parslet (2.0.0)
|
234
|
-
public_suffix (5.0.
|
235
|
-
racc (1.6.
|
236
|
-
rack (
|
233
|
+
public_suffix (5.0.1)
|
234
|
+
racc (1.6.2)
|
235
|
+
rack (3.0.4.1)
|
237
236
|
rainbow (3.1.1)
|
238
237
|
rchardet (1.8.0)
|
239
238
|
rexml (3.2.5)
|
240
|
-
rspec (3.
|
241
|
-
rspec-core (~> 3.
|
242
|
-
rspec-expectations (~> 3.
|
243
|
-
rspec-mocks (~> 3.
|
244
|
-
rspec-core (3.
|
245
|
-
rspec-support (~> 3.
|
246
|
-
rspec-expectations (3.
|
239
|
+
rspec (3.12.0)
|
240
|
+
rspec-core (~> 3.12.0)
|
241
|
+
rspec-expectations (~> 3.12.0)
|
242
|
+
rspec-mocks (~> 3.12.0)
|
243
|
+
rspec-core (3.12.0)
|
244
|
+
rspec-support (~> 3.12.0)
|
245
|
+
rspec-expectations (3.12.2)
|
247
246
|
diff-lcs (>= 1.2.0, < 2.0)
|
248
|
-
rspec-support (~> 3.
|
249
|
-
rspec-mocks (3.
|
247
|
+
rspec-support (~> 3.12.0)
|
248
|
+
rspec-mocks (3.12.3)
|
250
249
|
diff-lcs (>= 1.2.0, < 2.0)
|
251
|
-
rspec-support (~> 3.
|
252
|
-
rspec-support (3.
|
250
|
+
rspec-support (~> 3.12.0)
|
251
|
+
rspec-support (3.12.0)
|
253
252
|
rubocop (0.80.1)
|
254
253
|
jaro_winkler (~> 1.5.1)
|
255
254
|
parallel (~> 1.10)
|
@@ -270,36 +269,42 @@ GEM
|
|
270
269
|
selenium-webdriver (3.142.7)
|
271
270
|
childprocess (>= 0.5, < 4.0)
|
272
271
|
rubyzip (>= 1.2.2)
|
273
|
-
taglib-ruby (1.1.
|
274
|
-
telegram-bot-ruby (0.
|
272
|
+
taglib-ruby (1.1.3)
|
273
|
+
telegram-bot-ruby (0.23.0)
|
275
274
|
dry-inflector
|
276
|
-
faraday (~>
|
275
|
+
faraday (~> 2.0)
|
276
|
+
faraday-multipart (~> 1.0)
|
277
277
|
virtus (~> 2.0)
|
278
278
|
thread_safe (0.3.6)
|
279
|
-
tzinfo (2.0.
|
279
|
+
tzinfo (2.0.6)
|
280
280
|
concurrent-ruby (~> 1.0)
|
281
|
+
ultimate_lyrics (0.1.3)
|
282
|
+
aranha-parsers (~> 0.10)
|
283
|
+
eac_ruby_utils (~> 0.102, >= 0.102.1)
|
281
284
|
unicode-display_width (1.6.1)
|
282
285
|
virtus (2.0.0)
|
283
286
|
axiom-types (~> 0.1)
|
284
287
|
coercible (~> 1.0)
|
285
288
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
286
|
-
zeitwerk (2.6.
|
289
|
+
zeitwerk (2.6.6)
|
287
290
|
zlib (2.1.1)
|
288
291
|
|
289
292
|
PLATFORMS
|
290
293
|
x86_64-linux
|
291
294
|
|
292
295
|
DEPENDENCIES
|
296
|
+
aranha!
|
297
|
+
aranha-parsers!
|
293
298
|
aranha-selenium!
|
299
|
+
eac_cli!
|
294
300
|
eac_docker!
|
301
|
+
eac_rest!
|
295
302
|
eac_ruby_base0!
|
296
303
|
eac_ruby_gem_support (~> 0.3)
|
297
304
|
eac_ruby_utils!
|
298
305
|
eac_templates!
|
299
306
|
ehbrs-tools!
|
300
307
|
ehbrs_ruby_utils!
|
301
|
-
httpclient!
|
302
|
-
ultimate_lyrics!
|
303
308
|
|
304
309
|
BUNDLED WITH
|
305
|
-
2.3.
|
310
|
+
2.3.26
|
@@ -35,8 +35,15 @@ module Ehbrs
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def run_patch(source_path, ips_path, output_path)
|
38
|
-
::Ehbrs::Executables.flips.command
|
39
|
-
|
38
|
+
command = ::Ehbrs::Executables.flips.command
|
39
|
+
.append(['--apply', ips_path, source_path, output_path])
|
40
|
+
|
41
|
+
command.system!
|
42
|
+
|
43
|
+
return if output_path.exist?
|
44
|
+
|
45
|
+
fatal_error("\"#{command}\" exited without error, but output file \"#{output_path}\"" \
|
46
|
+
'does not exist')
|
40
47
|
end
|
41
48
|
|
42
49
|
def run_patches
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'eac_ruby_base0/core_ext'
|
5
|
+
require 'ehbrs_ruby_utils/videos/opensubtitles/processors/episode'
|
6
|
+
require 'ehbrs_ruby_utils/videos/opensubtitles/processors/title'
|
7
|
+
|
8
|
+
module Ehbrs
|
9
|
+
module Tools
|
10
|
+
class Runner
|
11
|
+
class Videos
|
12
|
+
class Opensubtitles
|
13
|
+
runner_with :help, :output do
|
14
|
+
arg_opt '-C', '--target-path', 'Caminho para extração dos arquivos', default: '.'
|
15
|
+
bool_opt '-H', '--html', 'Formata URLs como links HTML.'
|
16
|
+
bool_opt '-e', '--episode', 'Processa como episódio em vez de título.'
|
17
|
+
bool_opt '-d', '--download', 'Baixa os links em vez mostrá-los.'
|
18
|
+
pos_arg :url
|
19
|
+
end
|
20
|
+
|
21
|
+
def run
|
22
|
+
parsed.download? ? run_download : run_output
|
23
|
+
end
|
24
|
+
|
25
|
+
def run_download
|
26
|
+
subtitles.map { |sub| download_sub(sub) }
|
27
|
+
end
|
28
|
+
|
29
|
+
def output_content
|
30
|
+
subtitles.map { |v| "#{format_url(v.source_uri)}\n" }.join
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def download_sub(sub)
|
36
|
+
infov 'Downloading', sub.source_uri
|
37
|
+
::EacRubyUtils::Envs.local.command('wget', '--continue', sub.source_uri).system!
|
38
|
+
end
|
39
|
+
|
40
|
+
def subtitles_uncached
|
41
|
+
if parsed.episode?
|
42
|
+
subtitles_from_episode
|
43
|
+
else
|
44
|
+
subtitles_from_title
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def subtitles_from_episode
|
49
|
+
::EhbrsRubyUtils::Videos::Opensubtitles::Processors::Episode
|
50
|
+
.new(parsed.url, target_path: parsed.target_path)
|
51
|
+
.subtitles
|
52
|
+
end
|
53
|
+
|
54
|
+
def subtitles_from_title
|
55
|
+
::EhbrsRubyUtils::Videos::Opensubtitles::Processors::Title
|
56
|
+
.new(parsed.url, target_path: parsed.target_path)
|
57
|
+
.episodes.flat_map(&:subtitles)
|
58
|
+
end
|
59
|
+
|
60
|
+
def format_url(url)
|
61
|
+
return url unless parsed.html?
|
62
|
+
|
63
|
+
"<a href=\"#{url}\">#{url}</a><br/>"
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/lib/ehbrs/tools/version.rb
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
:codec_long_name: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
|
6
6
|
:profile: Constrained Baseline
|
7
7
|
:codec_type: video
|
8
|
-
:codec_time_base: 1/50
|
9
8
|
:codec_tag_string: avc1
|
10
9
|
:codec_tag: '0x31637661'
|
11
10
|
:width: 352
|
12
11
|
:height: 288
|
13
12
|
:coded_width: 352
|
14
13
|
:coded_height: 288
|
14
|
+
:closed_captions: 0
|
15
15
|
:has_b_frames: 0
|
16
16
|
:sample_aspect_ratio: '1:1'
|
17
17
|
:display_aspect_ratio: '11:9'
|
@@ -47,12 +47,12 @@
|
|
47
47
|
:tags:
|
48
48
|
:language: und
|
49
49
|
:handler_name: VideoHandler
|
50
|
+
:vendor_id: "[0][0][0][0]"
|
50
51
|
- :index: 1
|
51
52
|
:codec_name: aac
|
52
53
|
:codec_long_name: AAC (Advanced Audio Coding)
|
53
54
|
:profile: LC
|
54
55
|
:codec_type: audio
|
55
|
-
:codec_time_base: 1/44100
|
56
56
|
:codec_tag_string: mp4a
|
57
57
|
:codec_tag: '0x6134706d'
|
58
58
|
:sample_fmt: fltp
|
@@ -68,7 +68,6 @@
|
|
68
68
|
:duration_ts: 299008
|
69
69
|
:duration: '6.780227'
|
70
70
|
:bit_rate: '95999'
|
71
|
-
:max_bit_rate: '100304'
|
72
71
|
:nb_frames: '292'
|
73
72
|
:disposition:
|
74
73
|
:default: 1
|
@@ -87,6 +86,7 @@
|
|
87
86
|
:creation_time: '2015-05-17T06:08:17.000000Z'
|
88
87
|
:language: und
|
89
88
|
:handler_name: IsoMedia File Produced by Google, 5-11-2011
|
89
|
+
:vendor_id: "[0][0][0][0]"
|
90
90
|
:format:
|
91
91
|
:filename: "%%PATH%%"
|
92
92
|
:nb_streams: 2
|
@@ -5,13 +5,13 @@
|
|
5
5
|
:codec_long_name: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
|
6
6
|
:profile: Constrained Baseline
|
7
7
|
:codec_type: video
|
8
|
-
:codec_time_base: 1/50
|
9
8
|
:codec_tag_string: "[0][0][0][0]"
|
10
9
|
:codec_tag: '0x0000'
|
11
10
|
:width: 352
|
12
11
|
:height: 288
|
13
12
|
:coded_width: 352
|
14
13
|
:coded_height: 288
|
14
|
+
:closed_captions: 0
|
15
15
|
:has_b_frames: 0
|
16
16
|
:sample_aspect_ratio: '1:1'
|
17
17
|
:display_aspect_ratio: '11:9'
|
@@ -42,13 +42,13 @@
|
|
42
42
|
:attached_pic: 0
|
43
43
|
:timed_thumbnails: 0
|
44
44
|
:tags:
|
45
|
+
:VENDOR_ID: "[0][0][0][0]"
|
45
46
|
:DURATION: '00:00:06.743000000'
|
46
47
|
- :index: 1
|
47
48
|
:codec_name: aac
|
48
49
|
:codec_long_name: AAC (Advanced Audio Coding)
|
49
50
|
:profile: LC
|
50
51
|
:codec_type: audio
|
51
|
-
:codec_time_base: 1/44100
|
52
52
|
:codec_tag_string: "[0][0][0][0]"
|
53
53
|
:codec_tag: '0x0000'
|
54
54
|
:sample_fmt: fltp
|
@@ -75,6 +75,7 @@
|
|
75
75
|
:attached_pic: 0
|
76
76
|
:timed_thumbnails: 0
|
77
77
|
:tags:
|
78
|
+
:VENDOR_ID: "[0][0][0][0]"
|
78
79
|
:DURATION: '00:00:06.803000000'
|
79
80
|
:format:
|
80
81
|
:nb_streams: 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ehbrs-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -16,68 +16,68 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.145'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.145.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.145'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.145.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: eac_cli
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
39
|
+
version: '0.30'
|
34
40
|
- - ">="
|
35
41
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
42
|
+
version: 0.30.1
|
37
43
|
type: :runtime
|
38
44
|
prerelease: false
|
39
45
|
version_requirements: !ruby/object:Gem::Requirement
|
40
46
|
requirements:
|
41
47
|
- - "~>"
|
42
48
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
49
|
+
version: '0.30'
|
44
50
|
- - ">="
|
45
51
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
52
|
+
version: 0.30.1
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: eac_ruby_utils
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - "~>"
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 0.102.1
|
59
|
+
version: '0.112'
|
57
60
|
type: :runtime
|
58
61
|
prerelease: false
|
59
62
|
version_requirements: !ruby/object:Gem::Requirement
|
60
63
|
requirements:
|
61
64
|
- - "~>"
|
62
65
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.102.1
|
66
|
+
version: '0.112'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: ehbrs_ruby_utils
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.20'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
80
|
+
version: '0.20'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: filesize
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,20 +132,14 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - "~>"
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: '0.
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 0.19.2
|
135
|
+
version: '0.23'
|
139
136
|
type: :runtime
|
140
137
|
prerelease: false
|
141
138
|
version_requirements: !ruby/object:Gem::Requirement
|
142
139
|
requirements:
|
143
140
|
- - "~>"
|
144
141
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
146
|
-
- - ">="
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version: 0.19.2
|
142
|
+
version: '0.23'
|
149
143
|
- !ruby/object:Gem::Dependency
|
150
144
|
name: eac_ruby_gem_support
|
151
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,6 +220,7 @@ files:
|
|
226
220
|
- lib/ehbrs/tools/runner/vg/wii.rb
|
227
221
|
- lib/ehbrs/tools/runner/videos.rb
|
228
222
|
- lib/ehbrs/tools/runner/videos/extract.rb
|
223
|
+
- lib/ehbrs/tools/runner/videos/opensubtitles.rb
|
229
224
|
- lib/ehbrs/tools/runner/videos/probe.rb
|
230
225
|
- lib/ehbrs/tools/runner/videos/series.rb
|
231
226
|
- lib/ehbrs/tools/runner/videos/series/rename.rb
|