ehbrs-tools 0.36.0 → 0.37.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/ehbrs/tools/runner/videos/opensubtitles.rb +10 -20
- data/lib/ehbrs/tools/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0db0050f90e36dc79b898e1d7b7aebf2586c85c8fd3df674f03035d802484d3
|
|
4
|
+
data.tar.gz: 789d052e717913eae662e59fe1f9975d2960d2ba8e31cc087c6fefa42d79dcd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9de584955eacbd3ff6884ef57bf3c14a90b462dfb15b816cd08fa297fa94b9a9b82b77a7c31a8871ae37f2dc0a09d7786f074a576219404dbec6a83485a07a1b
|
|
7
|
+
data.tar.gz: 3a648b506ac3867457dede4027da13fb85e76b6a367ba296f012b391f968e5bd6ec848d1aab3e70dce80f953c842161f9b9b6f65ce1d8adf8f8cb035938f8c9c
|
data/Gemfile.lock
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ehbrs-tools (0.
|
|
4
|
+
ehbrs-tools (0.37.0)
|
|
5
5
|
avm-tools (~> 0.156)
|
|
6
6
|
eac_cli (~> 0.38)
|
|
7
7
|
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
8
|
-
ehbrs_ruby_utils (~> 0.
|
|
8
|
+
ehbrs_ruby_utils (~> 0.35)
|
|
9
9
|
filesize (~> 0.2)
|
|
10
10
|
inifile (~> 3.0)
|
|
11
11
|
os (~> 1.1, >= 1.1.4)
|
|
@@ -14,11 +14,11 @@ PATH
|
|
|
14
14
|
PATH
|
|
15
15
|
remote: sub/ehbrs_ruby_utils
|
|
16
16
|
specs:
|
|
17
|
-
ehbrs_ruby_utils (0.
|
|
17
|
+
ehbrs_ruby_utils (0.35.0)
|
|
18
18
|
aranha (~> 0.19, >= 0.19.2)
|
|
19
19
|
aranha-parsers (~> 0.21)
|
|
20
20
|
aranha-selenium (~> 0.7)
|
|
21
|
-
avm (~> 0.
|
|
21
|
+
avm (~> 0.80)
|
|
22
22
|
dentaku (~> 3.5, >= 3.5.1)
|
|
23
23
|
eac_fs (~> 0.16)
|
|
24
24
|
eac_rest (~> 0.10)
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
require 'eac_ruby_base0/core_ext'
|
|
5
|
-
require 'ehbrs_ruby_utils/videos/opensubtitles/processors/
|
|
6
|
-
require 'ehbrs_ruby_utils/videos/opensubtitles/processors/title'
|
|
5
|
+
require 'ehbrs_ruby_utils/videos/opensubtitles/processors/subtitles_provider'
|
|
7
6
|
|
|
8
7
|
module Ehbrs
|
|
9
8
|
module Tools
|
|
@@ -13,7 +12,6 @@ module Ehbrs
|
|
|
13
12
|
runner_with :help, :output do
|
|
14
13
|
arg_opt '-C', '--target-path', 'Caminho para extração dos arquivos', default: '.'
|
|
15
14
|
bool_opt '-H', '--html', 'Formata URLs como links HTML.'
|
|
16
|
-
bool_opt '-e', '--episode', 'Processa como episódio em vez de título.'
|
|
17
15
|
bool_opt '-d', '--download', 'Baixa os links em vez mostrá-los.'
|
|
18
16
|
pos_arg :url
|
|
19
17
|
end
|
|
@@ -38,23 +36,9 @@ module Ehbrs
|
|
|
38
36
|
end
|
|
39
37
|
|
|
40
38
|
def subtitles_uncached
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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)
|
|
39
|
+
r = subtitles_provider.subtitles
|
|
40
|
+
infov 'Subtitles found', r.count
|
|
41
|
+
r
|
|
58
42
|
end
|
|
59
43
|
|
|
60
44
|
def format_url(url)
|
|
@@ -62,6 +46,12 @@ module Ehbrs
|
|
|
62
46
|
|
|
63
47
|
"<a href=\"#{url}\">#{url}</a><br/>"
|
|
64
48
|
end
|
|
49
|
+
|
|
50
|
+
# @return [EhbrsRubyUtils::Videos::Opensubtitles::Processors::SubtitlesProvider]
|
|
51
|
+
def subtitles_provider_uncached
|
|
52
|
+
::EhbrsRubyUtils::Videos::Opensubtitles::Processors::SubtitlesProvider
|
|
53
|
+
.new(parsed.url, target_path: parsed.target_path)
|
|
54
|
+
end
|
|
65
55
|
end
|
|
66
56
|
end
|
|
67
57
|
end
|
data/lib/ehbrs/tools/version.rb
CHANGED
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.37.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: 2023-10-
|
|
11
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: avm-tools
|
|
@@ -64,14 +64,14 @@ dependencies:
|
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0.
|
|
67
|
+
version: '0.35'
|
|
68
68
|
type: :runtime
|
|
69
69
|
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '0.
|
|
74
|
+
version: '0.35'
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: filesize
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -294,21 +294,21 @@ signing_key:
|
|
|
294
294
|
specification_version: 4
|
|
295
295
|
summary: Tools for EHB/RS.
|
|
296
296
|
test_files:
|
|
297
|
-
- spec/spec_helper.
|
|
297
|
+
- spec/spec_helper/videos_files/stub_source.mp4
|
|
298
|
+
- spec/spec_helper/videos.rb
|
|
298
299
|
- spec/lib/ehbrs/observers/base_spec.rb
|
|
299
|
-
- spec/lib/ehbrs/tools/
|
|
300
|
-
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/source.rom
|
|
301
|
-
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_1.ips
|
|
302
|
-
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_0.ips
|
|
303
|
-
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/expected.rom
|
|
304
|
-
- spec/lib/ehbrs/tools/runner/vg/ips_spec.rb
|
|
300
|
+
- spec/lib/ehbrs/tools/runner/fs/used_space_spec.rb
|
|
305
301
|
- spec/lib/ehbrs/tools/runner/videos/unsupported_spec.rb
|
|
306
|
-
- spec/lib/ehbrs/tools/runner/videos/unsupported_spec_files/dts_audio.probe.yaml
|
|
307
302
|
- spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
|
|
308
303
|
- spec/lib/ehbrs/tools/runner/videos/probe_spec_files/fixed.target.yaml
|
|
309
|
-
- spec/lib/ehbrs/tools/runner/
|
|
304
|
+
- spec/lib/ehbrs/tools/runner/videos/unsupported_spec_files/dts_audio.probe.yaml
|
|
305
|
+
- spec/lib/ehbrs/tools/runner/vg/ips_spec.rb
|
|
306
|
+
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/expected.rom
|
|
307
|
+
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/source.rom
|
|
308
|
+
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_1.ips
|
|
309
|
+
- spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_0.ips
|
|
310
|
+
- spec/lib/ehbrs/tools/runner_spec.rb
|
|
311
|
+
- spec/spec_helper.rb
|
|
310
312
|
- spec/code/rubocop_spec.rb
|
|
311
|
-
- spec/spec_helper/videos_files/stub_source.mp4
|
|
312
|
-
- spec/spec_helper/videos.rb
|
|
313
313
|
- ".rubocop.yml"
|
|
314
314
|
- ".rspec"
|