ehbrs-tools 0.39.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +106 -143
  3. data/lib/ehbrs/tools/runner/music/lyrics.rb +2 -2
  4. data/lib/ehbrs/tools/runner/music/lyrics_book.rb +1 -1
  5. data/lib/ehbrs/tools/runner/music/spread.rb +32 -7
  6. data/lib/ehbrs/tools/runner/videos/extract.rb +2 -2
  7. data/lib/ehbrs/tools/runner/videos/languages/file_runner.rb +1 -1
  8. data/lib/ehbrs/tools/runner/videos/languages.rb +1 -1
  9. data/lib/ehbrs/tools/runner/videos/probe.rb +2 -2
  10. data/lib/ehbrs/tools/runner/videos/unsupported.rb +7 -7
  11. data/lib/ehbrs/tools/version.rb +1 -1
  12. metadata +35 -41
  13. data/lib/ehbrs/tools/runner_with/filesystem_renamer.rb +0 -103
  14. data/lib/ehbrs/tools/runner_with.rb +0 -11
  15. data/lib/ehbrs/videos/convert_job.rb +0 -99
  16. data/lib/ehbrs/videos/extract/package.rb +0 -75
  17. data/lib/ehbrs/videos/extract/package_file.rb +0 -53
  18. data/lib/ehbrs/videos/extract.rb +0 -11
  19. data/lib/ehbrs/videos/file.rb +0 -67
  20. data/lib/ehbrs/videos/profiles/base.rb +0 -35
  21. data/lib/ehbrs/videos/profiles/same_quality.rb +0 -21
  22. data/lib/ehbrs/videos/track.rb +0 -20
  23. data/lib/ehbrs/videos/unsupported/check_result.rb +0 -24
  24. data/lib/ehbrs/videos/unsupported/check_set.rb +0 -43
  25. data/lib/ehbrs/videos/unsupported/check_support.rb +0 -71
  26. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb +0 -29
  27. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb +0 -28
  28. data/lib/ehbrs/videos/unsupported/checks/codec_unlisted.rb +0 -25
  29. data/lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb +0 -27
  30. data/lib/ehbrs/videos/unsupported/checks/invalid_extension.rb +0 -27
  31. data/lib/ehbrs/videos/unsupported/checks.rb +0 -13
  32. data/lib/ehbrs/videos/unsupported/file/fix.rb +0 -45
  33. data/lib/ehbrs/videos/unsupported/file.rb +0 -50
  34. data/lib/ehbrs/videos/unsupported/fix_profile.rb +0 -44
  35. data/lib/ehbrs/videos/unsupported/fixes/supported_codec.rb +0 -36
  36. data/lib/ehbrs/videos/unsupported/fixes/supported_container.rb +0 -17
  37. data/lib/ehbrs/videos/unsupported/profiles/aoc.rb +0 -27
  38. data/lib/ehbrs/videos/unsupported/profiles/base.rb +0 -116
  39. data/lib/ehbrs/videos/unsupported/profiles/philco.rb +0 -28
  40. data/lib/ehbrs/videos/unsupported/profiles/samsung.rb +0 -33
  41. data/lib/ehbrs/videos/unsupported/profiles.rb +0 -13
  42. data/lib/ehbrs/videos/unsupported/search.rb +0 -75
  43. data/lib/ehbrs/videos/unsupported/track.rb +0 -32
  44. data/lib/ehbrs/videos.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05eba951b36f326e76fa27e5264caecd9533f10ce8ec1f3775c6b6b10be3678b
4
- data.tar.gz: 1c6caca39da80381d76cd9cee1f8f40989b428d19e3a0d749e7cbf9fdb4f99b1
3
+ metadata.gz: afba1515a9a95f71e7f9ef4846ed767259fb791149c440e98dc56611c7d09104
4
+ data.tar.gz: 41bfc93b95a4d43300207e83b1f4958f27e273ee5a622e9f2a8d8220a8c44dc8
5
5
  SHA512:
6
- metadata.gz: 38e39c046a9c1ba26c2624d3ba7769100ad1b4941c1bdac7eaa58d48d2d75da80d02c75fb99d94051498cd6efb245f650139ef70df978a4111e7327e4a118595
7
- data.tar.gz: acbaed41a43a3e7a9c9dea2afdddaf2704eee2033f208e3d400b739a484ba15c832f4c1fffafdd36d4797391d4d78762824c2d4a8481ed77711245515c27c07a
6
+ metadata.gz: a3098c00fbcc328113d82d76801187dbd1cb85ec3b08a6a786fc6c7c00b49e550db32ff0e0ba6fd58d1301075c3ca9807e95087bce9aa318c33aff4b84408d1a
7
+ data.tar.gz: 1c5a15956bd810fb96d390872584a0aa3431e3da22ec1d39c0b942fff34c9fe6fe78f6c08267415bdc984a667e2fccb1811ddbe3ff8a9ea857ec571b42445d9d
data/Gemfile.lock CHANGED
@@ -1,37 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ehbrs-tools (0.39.0)
5
- avm-tools (~> 0.159)
6
- eac_cli (~> 0.40)
7
- eac_ruby_utils (~> 0.120)
8
- ehbrs_ruby_utils (~> 0.38)
4
+ ehbrs-tools (0.40.0)
5
+ avm-files (~> 0.7)
6
+ eac_cli (~> 0.40, >= 0.40.1)
7
+ eac_ruby_base0 (~> 0.19)
8
+ eac_ruby_utils (~> 0.121)
9
+ ehbrs_ruby_utils (~> 0.41, >= 0.41.2)
9
10
  filesize (~> 0.2)
10
11
  os (~> 1.1, >= 1.1.4)
11
12
  telegram-bot-ruby (~> 0.23)
12
13
 
13
- PATH
14
- remote: sub/eac_cli
15
- specs:
16
- eac_cli (0.40.0)
17
- colorize (~> 0.8, >= 0.8.1)
18
- eac_config (~> 0.14, >= 0.14.1)
19
- eac_ruby_utils (~> 0.120)
20
- tty-table (~> 0.12)
21
-
22
14
  PATH
23
15
  remote: sub/ehbrs_ruby_utils
24
16
  specs:
25
- ehbrs_ruby_utils (0.38.0)
17
+ ehbrs_ruby_utils (0.41.2)
26
18
  aranha (~> 0.19, >= 0.19.2)
27
19
  aranha-parsers (~> 0.22)
28
- aranha-selenium (~> 0.7)
29
- avm (~> 0.84, >= 0.84.2)
30
- dentaku (~> 3.5, >= 3.5.1)
31
- eac_fs (~> 0.16)
32
- eac_rest (~> 0.10)
33
- eac_ruby_utils (~> 0.120)
34
- eac_templates (~> 0.5)
20
+ aranha-selenium (~> 0.10, >= 0.10.1)
21
+ avm (~> 0.90, >= 0.90.1)
22
+ dentaku (~> 3.5, >= 3.5.2)
23
+ eac_fs (~> 0.17)
24
+ eac_rest (~> 0.12)
25
+ eac_ruby_utils (~> 0.121)
26
+ eac_templates (~> 0.5, >= 0.5.1)
35
27
  inifile (~> 3.0)
36
28
  srt (~> 0.1, >= 0.1.5)
37
29
  taglib-ruby (~> 1.1, >= 1.1.3)
@@ -40,13 +32,13 @@ PATH
40
32
  GEM
41
33
  remote: https://rubygems.org/
42
34
  specs:
43
- activesupport (6.1.7.6)
35
+ activesupport (6.1.7.7)
44
36
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
37
  i18n (>= 1.6, < 2)
46
38
  minitest (>= 5.1)
47
39
  tzinfo (~> 2.0)
48
40
  zeitwerk (~> 2.3)
49
- addressable (2.8.5)
41
+ addressable (2.8.6)
50
42
  public_suffix (>= 2.0.2, < 6.0)
51
43
  aranha (0.19.2)
52
44
  aranha-parsers (~> 0.18)
@@ -59,127 +51,102 @@ GEM
59
51
  eac_ruby_utils (~> 0.119, >= 0.119.2)
60
52
  nokogiri (~> 1.15, >= 1.15.4)
61
53
  ofx-parser (~> 1.1)
62
- aranha-selenium (0.7.0)
63
- eac_ruby_utils (~> 0.117, >= 0.117.1)
54
+ aranha-selenium (0.10.1)
55
+ eac_fs (~> 0.17)
56
+ eac_ruby_utils (~> 0.121)
57
+ eac_templates (~> 0.5, >= 0.5.1)
64
58
  selenium-webdriver (~> 3.142, >= 3.142.7)
65
59
  ast (2.4.2)
66
- avm (0.84.2)
67
- aranha-parsers (~> 0.22)
68
- eac_cli (~> 0.39)
69
- eac_config (~> 0.14, >= 0.14.1)
60
+ avm (0.90.1)
61
+ eac_cli (~> 0.40, >= 0.40.1)
62
+ eac_config (~> 0.14, >= 0.14.2)
70
63
  eac_docker (~> 0.7)
71
- eac_fs (~> 0.16)
72
- eac_git (~> 0.14, >= 0.14.1)
73
- eac_ruby_utils (~> 0.120)
74
- eac_templates (~> 0.5)
75
- filesize (~> 0.2)
76
- htmlbeautifier (~> 1.4, >= 1.4.2)
64
+ eac_fs (~> 0.17)
65
+ eac_ruby_utils (~> 0.121)
66
+ eac_templates (~> 0.5, >= 0.5.1)
77
67
  minitar (~> 0.9)
78
- avm-eac_generic_base0 (0.12.2)
79
- avm (~> 0.84, >= 0.84.2)
80
- eac_ruby_utils (~> 0.120)
68
+ ruby-progressbar (~> 1.13)
69
+ avm-eac_generic_base0 (0.13.0)
70
+ avm (~> 0.90)
71
+ eac_ruby_utils (~> 0.121)
81
72
  avm-eac_ruby_base1 (0.33.1)
82
73
  aranha-parsers (~> 0.22)
83
74
  avm (~> 0.84)
84
75
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
85
76
  eac_envs-http (~> 0.4, >= 0.4.1)
86
77
  eac_ruby_utils (~> 0.119, >= 0.119.2)
87
- avm-eac_ubuntu_base0 (0.5.0)
88
- avm (~> 0.77)
89
- eac_ruby_utils (~> 0.117, >= 0.117.1)
90
- eac_templates (~> 0.5)
91
- avm-files (0.6.2)
92
- avm (~> 0.67, >= 0.67.1)
93
- eac_cli (~> 0.30, >= 0.30.1)
94
- eac_fs (~> 0.16)
95
- eac_ruby_utils (~> 0.112)
96
- eac_templates (~> 0.5)
97
- avm-git (0.14.0)
98
- avm (~> 0.82)
99
- avm-files (~> 0.6, >= 0.6.2)
100
- eac_git (~> 0.14, >= 0.14.1)
101
- eac_ruby_utils (~> 0.119, >= 0.119.2)
102
- git (~> 1.18)
103
- avm-tools (0.159.0)
104
- aranha-parsers (~> 0.21)
105
- avm (~> 0.83)
106
- avm-eac_ruby_base1 (~> 0.33)
107
- avm-eac_ubuntu_base0 (~> 0.5)
108
- avm-files (~> 0.6, >= 0.6.2)
109
- avm-git (~> 0.14)
110
- clipboard (~> 1.3, >= 1.3.6)
111
- curb (~> 0.9, >= 0.9.11)
112
- eac_git (~> 0.14, >= 0.14.1)
113
- eac_ruby_base0 (~> 0.19)
114
- eac_templates (~> 0.5)
115
- git (~> 1.18)
116
- ruby-progressbar (~> 1.13)
78
+ avm-files (0.7.0)
79
+ avm (~> 0.84, >= 0.84.2)
80
+ eac_cli (~> 0.40)
81
+ eac_fs (~> 0.17)
82
+ eac_ruby_utils (~> 0.121)
83
+ eac_templates (~> 0.5, >= 0.5.1)
117
84
  axiom-types (0.1.1)
118
85
  descendants_tracker (~> 0.0.4)
119
86
  ice_nine (~> 0.11.0)
120
87
  thread_safe (~> 0.3, >= 0.3.1)
121
88
  base64 (0.2.0)
122
89
  childprocess (3.0.0)
123
- clipboard (1.3.6)
124
90
  coercible (1.0.0)
125
91
  descendants_tracker (~> 0.0.1)
126
92
  colorize (0.8.1)
127
- concurrent-ruby (1.2.2)
93
+ concurrent-ruby (1.2.3)
128
94
  content-type (0.0.2)
129
95
  parslet (~> 2.0)
130
- curb (0.9.11)
131
- dentaku (3.5.1)
96
+ dentaku (3.5.2)
132
97
  concurrent-ruby
133
98
  descendants_tracker (0.0.4)
134
99
  thread_safe (~> 0.3, >= 0.3.1)
135
- diff-lcs (1.5.0)
100
+ diff-lcs (1.5.1)
136
101
  dry-inflector (1.0.0)
137
- eac_config (0.14.1)
138
- addressable (~> 2.8, >= 2.8.5)
139
- eac_ruby_utils (~> 0.119, >= 0.119.2)
102
+ eac_cli (0.40.1)
103
+ colorize (~> 0.8, >= 0.8.1)
104
+ eac_config (~> 0.14, >= 0.14.2)
105
+ eac_ruby_utils (~> 0.121)
106
+ tty-table (~> 0.12)
107
+ eac_config (0.14.2)
108
+ addressable (~> 2.8, >= 2.8.6)
109
+ eac_ruby_utils (~> 0.121)
140
110
  eac_docker (0.7.0)
141
111
  eac_ruby_utils (~> 0.112)
142
112
  eac_templates (~> 0.3, >= 0.3.2)
143
- eac_envs-http (0.4.1)
144
- eac_fs (~> 0.16)
145
- eac_ruby_utils (~> 0.119, >= 0.119.1)
146
- faraday (~> 2.7, >= 2.7.10)
113
+ eac_envs-http (0.5.1)
114
+ eac_fs (~> 0.17)
115
+ eac_ruby_utils (~> 0.120)
116
+ faraday (~> 2.7, >= 2.7.12)
147
117
  faraday-follow_redirects (~> 0.3)
148
118
  faraday-gzip (~> 0.1)
149
119
  faraday-multipart (~> 1.0, >= 1.0.4)
150
120
  faraday-retry (~> 2.2)
151
- eac_fs (0.16.0)
121
+ eac_fs (0.17.0)
152
122
  content-type (~> 0.0, >= 0.0.2)
153
- eac_ruby_utils (~> 0.107, >= 0.107.1)
123
+ eac_ruby_utils (~> 0.120)
154
124
  ruby-filemagic (~> 0.7, >= 0.7.3)
155
- eac_git (0.14.1)
156
- eac_ruby_utils (~> 0.112)
157
- parseconfig (~> 1.1, >= 1.1.2)
158
- eac_rest (0.10.0)
159
- eac_envs-http (~> 0.4, >= 0.4.1)
125
+ eac_rest (0.12.0)
126
+ eac_envs-http (~> 0.5)
160
127
  eac_fs (~> 0.16)
161
- eac_ruby_utils (~> 0.119, >= 0.119.1)
128
+ eac_ruby_utils (~> 0.120)
162
129
  eac_ruby_base0 (0.19.0)
163
130
  avm-eac_ruby_base1 (~> 0.30, >= 0.30.3)
164
131
  eac_cli (~> 0.35)
165
132
  eac_fs (~> 0.16)
166
133
  eac_ruby_utils (~> 0.117)
167
- eac_ruby_gem_support (0.9.0)
168
- eac_ruby_utils (~> 0.119, >= 0.119.2)
134
+ eac_ruby_gem_support (0.10.0)
135
+ eac_ruby_utils (~> 0.120)
169
136
  rspec (~> 3.12)
170
- rubocop (~> 1.57, >= 1.57.2)
171
- rubocop-rails (~> 2.22, >= 2.22.1)
172
- rubocop-rspec (~> 2.25)
173
- eac_ruby_utils (0.120.0)
137
+ rubocop (~> 1.60, >= 1.60.1)
138
+ rubocop-rails (~> 2.23, >= 2.23.1)
139
+ rubocop-rspec (~> 2.26, >= 2.26.1)
140
+ eac_ruby_utils (0.121.0)
174
141
  activesupport (>= 4, < 7)
175
- addressable (~> 2.8, >= 2.8.5)
142
+ addressable (~> 2.8, >= 2.8.6)
176
143
  bundler
177
144
  filesize (~> 0.2)
178
145
  net-ssh (~> 4.2)
179
- eac_templates (0.5.0)
180
- eac_config (~> 0.12)
181
- eac_ruby_utils (~> 0.112)
182
- faraday (2.7.12)
146
+ eac_templates (0.5.1)
147
+ eac_config (~> 0.14, >= 0.14.1)
148
+ eac_ruby_utils (~> 0.121)
149
+ faraday (2.8.1)
183
150
  base64
184
151
  faraday-net_http (>= 2.0, < 3.1)
185
152
  ruby2_keywords (>= 0.0.4)
@@ -191,83 +158,80 @@ GEM
191
158
  faraday-multipart (1.0.4)
192
159
  multipart-post (~> 2)
193
160
  faraday-net_http (3.0.2)
194
- faraday-retry (2.2.0)
161
+ faraday-retry (2.2.1)
195
162
  faraday (~> 2.0)
196
163
  filesize (0.2.0)
197
- git (1.18.0)
198
- addressable (~> 2.8)
199
- rchardet (~> 1.8)
200
164
  hpricot (0.8.6)
201
- htmlbeautifier (1.4.2)
202
- i18n (1.14.1)
165
+ i18n (1.14.5)
203
166
  concurrent-ruby (~> 1.0)
204
167
  ice_nine (0.11.2)
205
168
  inifile (3.0.0)
206
- json (2.6.3)
169
+ json (2.7.2)
207
170
  language_server-protocol (3.17.0.3)
208
171
  minitar (0.9)
209
- minitest (5.20.0)
210
- multipart-post (2.3.0)
172
+ minitest (5.22.3)
173
+ multipart-post (2.4.1)
211
174
  net-ssh (4.2.0)
212
- nokogiri (1.15.5-x86_64-linux)
175
+ nokogiri (1.15.6-x86_64-linux)
213
176
  racc (~> 1.4)
214
177
  ofx-parser (1.1.0)
215
178
  hpricot (>= 0.6)
216
179
  os (1.1.4)
217
- parallel (1.23.0)
218
- parseconfig (1.1.2)
219
- parser (3.2.2.4)
180
+ parallel (1.24.0)
181
+ parser (3.3.1.0)
220
182
  ast (~> 2.4.1)
221
183
  racc
222
184
  parslet (2.0.0)
223
185
  pastel (0.8.0)
224
186
  tty-color (~> 0.5)
225
- public_suffix (5.0.4)
187
+ public_suffix (5.0.5)
226
188
  racc (1.7.3)
227
- rack (3.0.8)
189
+ rack (3.0.11)
228
190
  rainbow (3.1.1)
229
- rchardet (1.8.0)
230
- regexp_parser (2.8.2)
191
+ regexp_parser (2.9.1)
231
192
  rexml (3.2.6)
232
- rspec (3.12.0)
233
- rspec-core (~> 3.12.0)
234
- rspec-expectations (~> 3.12.0)
235
- rspec-mocks (~> 3.12.0)
236
- rspec-core (3.12.2)
237
- rspec-support (~> 3.12.0)
238
- rspec-expectations (3.12.3)
193
+ rspec (3.13.0)
194
+ rspec-core (~> 3.13.0)
195
+ rspec-expectations (~> 3.13.0)
196
+ rspec-mocks (~> 3.13.0)
197
+ rspec-core (3.13.0)
198
+ rspec-support (~> 3.13.0)
199
+ rspec-expectations (3.13.0)
239
200
  diff-lcs (>= 1.2.0, < 2.0)
240
- rspec-support (~> 3.12.0)
241
- rspec-mocks (3.12.6)
201
+ rspec-support (~> 3.13.0)
202
+ rspec-mocks (3.13.1)
242
203
  diff-lcs (>= 1.2.0, < 2.0)
243
- rspec-support (~> 3.12.0)
244
- rspec-support (3.12.1)
245
- rubocop (1.57.2)
204
+ rspec-support (~> 3.13.0)
205
+ rspec-support (3.13.1)
206
+ rubocop (1.63.5)
246
207
  json (~> 2.3)
247
208
  language_server-protocol (>= 3.17.0)
248
209
  parallel (~> 1.10)
249
- parser (>= 3.2.2.4)
210
+ parser (>= 3.3.0.2)
250
211
  rainbow (>= 2.2.2, < 4.0)
251
212
  regexp_parser (>= 1.8, < 3.0)
252
213
  rexml (>= 3.2.5, < 4.0)
253
- rubocop-ast (>= 1.28.1, < 2.0)
214
+ rubocop-ast (>= 1.31.1, < 2.0)
254
215
  ruby-progressbar (~> 1.7)
255
216
  unicode-display_width (>= 2.4.0, < 3.0)
256
- rubocop-ast (1.30.0)
257
- parser (>= 3.2.1.0)
258
- rubocop-capybara (2.19.0)
217
+ rubocop-ast (1.31.3)
218
+ parser (>= 3.3.1.0)
219
+ rubocop-capybara (2.20.0)
259
220
  rubocop (~> 1.41)
260
- rubocop-factory_bot (2.24.0)
261
- rubocop (~> 1.33)
262
- rubocop-rails (2.22.2)
221
+ rubocop-factory_bot (2.25.1)
222
+ rubocop (~> 1.41)
223
+ rubocop-rails (2.24.1)
263
224
  activesupport (>= 4.2.0)
264
225
  rack (>= 1.1)
265
226
  rubocop (>= 1.33.0, < 2.0)
266
- rubocop-ast (>= 1.30.0, < 2.0)
267
- rubocop-rspec (2.25.0)
227
+ rubocop-ast (>= 1.31.1, < 2.0)
228
+ rubocop-rspec (2.29.2)
268
229
  rubocop (~> 1.40)
269
230
  rubocop-capybara (~> 2.17)
270
231
  rubocop-factory_bot (~> 2.22)
232
+ rubocop-rspec_rails (~> 2.28)
233
+ rubocop-rspec_rails (2.28.3)
234
+ rubocop (~> 1.40)
271
235
  ruby-filemagic (0.7.3)
272
236
  ruby-progressbar (1.13.0)
273
237
  ruby2_keywords (0.0.5)
@@ -289,7 +253,7 @@ GEM
289
253
  virtus (~> 2.0)
290
254
  thread_safe (0.3.6)
291
255
  tty-color (0.6.0)
292
- tty-screen (0.8.1)
256
+ tty-screen (0.8.2)
293
257
  tty-table (0.12.0)
294
258
  pastel (~> 0.8)
295
259
  strings (~> 0.2.0)
@@ -305,17 +269,16 @@ GEM
305
269
  axiom-types (~> 0.1)
306
270
  coercible (~> 1.0)
307
271
  descendants_tracker (~> 0.0, >= 0.0.3)
308
- zeitwerk (2.6.12)
272
+ zeitwerk (2.6.13)
309
273
  zlib (2.1.1)
310
274
 
311
275
  PLATFORMS
312
276
  x86_64-linux
313
277
 
314
278
  DEPENDENCIES
315
- eac_cli!
316
279
  eac_ruby_gem_support (~> 0.9)
317
280
  ehbrs-tools!
318
281
  ehbrs_ruby_utils!
319
282
 
320
283
  BUNDLED WITH
321
- 2.4.19
284
+ 2.4.22
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'ehbrs/tools/core_ext'
4
- require 'ehbrs_ruby_utils/videos/container'
4
+ require 'ehbrs_ruby_utils/videos/file'
5
5
  require 'ultimate_lyrics/provider'
6
6
 
7
7
  module Ehbrs
@@ -39,7 +39,7 @@ module Ehbrs
39
39
  end
40
40
 
41
41
  def container_uncached
42
- ::EhbrsRubyUtils::Videos::Container.from_file(file)
42
+ ::EhbrsRubyUtils::Videos::File.from_file(file)
43
43
  end
44
44
 
45
45
  def file
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'ehbrs/tools/core_ext'
4
4
  require 'ehbrs_ruby_utils/music/lyrics_book'
5
- require 'ehbrs_ruby_utils/videos/container'
5
+ require 'ehbrs_ruby_utils/videos/file'
6
6
  require 'ultimate_lyrics/provider'
7
7
 
8
8
  module Ehbrs
@@ -11,10 +11,38 @@ module Ehbrs
11
11
  class Spread
12
12
  runner_with :help do
13
13
  bool_opt '-i', '--ids', 'Escreve IDs em STDOUT no lugar de labels em STDERR.'
14
+ bool_opt '-v', '--verbose'
14
15
  pos_arg :albums, repeat: true
15
16
  end
16
17
 
17
18
  def run
19
+ start_info
20
+ show_results
21
+ end
22
+
23
+ def spreader_uncached
24
+ ::EhbrsRubyUtils::CircularListSpreader.new(albums)
25
+ end
26
+
27
+ protected
28
+
29
+ # @return [Array<EhbrsRubyUtils::Music::Ous::Album>]
30
+ def albums_uncached
31
+ parsed.albums.map do |path|
32
+ ::EhbrsRubyUtils::Music::Ous::Album.new(path)
33
+ end
34
+ end
35
+
36
+ # @return [void]
37
+ def albums_info
38
+ infov 'Albums', albums.count
39
+ albums.each do |album|
40
+ infov ' * ', album
41
+ end
42
+ end
43
+
44
+ # @return [void]
45
+ def show_results
18
46
  spreader.result.each do |album|
19
47
  if parsed.ids?
20
48
  out("#{album.id}\n")
@@ -24,14 +52,11 @@ module Ehbrs
24
52
  end
25
53
  end
26
54
 
27
- def spreader_uncached
28
- ::EhbrsRubyUtils::CircularListSpreader.new(albums)
29
- end
55
+ # @return [void]
56
+ def start_info
57
+ return unless parsed.verbose?
30
58
 
31
- def albums
32
- parsed.albums.map do |path|
33
- ::EhbrsRubyUtils::Music::Ous::Album.new(path)
34
- end
59
+ albums_info
35
60
  end
36
61
  end
37
62
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
- require 'ehbrs/videos/extract/package'
4
+ require 'ehbrs_ruby_utils/videos2/extract/package'
5
5
 
6
6
  module Ehbrs
7
7
  module Tools
@@ -32,7 +32,7 @@ module Ehbrs
32
32
 
33
33
  def packages_uncached
34
34
  parsed.packages?.map do |p|
35
- ::Ehbrs::Videos::Extract::Package.new(p, target_dir, qualities)
35
+ ::EhbrsRubyUtils::Videos2::Extract::Package.new(p, target_dir, qualities)
36
36
  end
37
37
  end
38
38
 
@@ -53,7 +53,7 @@ module Ehbrs
53
53
  end
54
54
 
55
55
  def container_uncached
56
- ::EhbrsRubyUtils::Videos::Container.new(file)
56
+ ::EhbrsRubyUtils::Videos::File.new(file)
57
57
  end
58
58
 
59
59
  def track_label(track)
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_ruby_base0/core_ext'
4
4
  require 'ehbrs/executables'
5
- require 'ehbrs_ruby_utils/videos/container'
5
+ require 'ehbrs_ruby_utils/videos/file'
6
6
  require 'ehbrs_ruby_utils/videos/convert_job'
7
7
 
8
8
  module Ehbrs
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'ehbrs_ruby_utils/videos/container'
3
+ require 'ehbrs_ruby_utils/videos/file'
4
4
  require 'eac_ruby_base0/core_ext'
5
5
  require 'eac_ruby_utils/yaml'
6
6
 
@@ -25,7 +25,7 @@ module Ehbrs
25
25
  private
26
26
 
27
27
  def container_file_uncached
28
- ::EhbrsRubyUtils::Videos::Container.new(parsed.file_path)
28
+ ::EhbrsRubyUtils::Videos::File.new(parsed.file_path)
29
29
  end
30
30
  end
31
31
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
- require 'ehbrs/videos/unsupported/check_set'
5
- require 'ehbrs/videos/unsupported/search'
6
- require 'ehbrs/videos/unsupported/profiles'
4
+ require 'ehbrs_ruby_utils/videos2/unsupported/check_set'
5
+ require 'ehbrs_ruby_utils/videos2/unsupported/search'
6
+ require 'ehbrs_ruby_utils/videos2/unsupported/profiles'
7
7
 
8
8
  module Ehbrs
9
9
  module Tools
@@ -23,18 +23,18 @@ module Ehbrs
23
23
  infov 'Profiles', profiles.join(', ')
24
24
  infov 'Paths', paths
25
25
  paths.each do |d|
26
- ::Ehbrs::Videos::Unsupported::Search.new(d, file_options)
26
+ ::EhbrsRubyUtils::Videos2::Unsupported::Search.new(d, file_options)
27
27
  end
28
28
  end
29
29
 
30
30
  private
31
31
 
32
32
  def file_check_set_uncached
33
- ::Ehbrs::Videos::Unsupported::CheckSet.build(profiles, :file)
33
+ ::EhbrsRubyUtils::Videos2::Unsupported::CheckSet.build(profiles, :file)
34
34
  end
35
35
 
36
36
  def track_check_set_uncached
37
- ::Ehbrs::Videos::Unsupported::CheckSet.build(profiles, :track)
37
+ ::EhbrsRubyUtils::Videos2::Unsupported::CheckSet.build(profiles, :track)
38
38
  end
39
39
 
40
40
  def paths
@@ -52,7 +52,7 @@ module Ehbrs
52
52
  end
53
53
 
54
54
  def profile_class(profile_name)
55
- ::Ehbrs::Videos::Unsupported::Profiles.const_get(profile_name.camelize)
55
+ ::EhbrsRubyUtils::Videos2::Unsupported::Profiles.const_get(profile_name.camelize)
56
56
  end
57
57
  end
58
58
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.39.0'
5
+ VERSION = '0.40.0'
6
6
  end
7
7
  end