mm_tool 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mm_tool/mm_movie_stream.rb +4 -3
- data/lib/mm_tool/mm_tool_cli.rb +6 -0
- data/lib/mm_tool/user_defaults.rb +14 -0
- data/lib/mm_tool/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a63e56b4daf6147ab5bf8a968e67cd15877019b987b8b342b6c2f609e7bff512
|
4
|
+
data.tar.gz: b7cd0fecb70eda41d1963421f7fa037aeae0ba75ca3b24c15d4f84b9cc4281d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65f22107a16a6dbde0935cc6689787dc5db24cf7486e689f9389c9214739c4d2ce03283e870b6e6774404337171f787479889f8db3751236e5f0a492594b46e
|
7
|
+
data.tar.gz: e9528b2a9ce20b2b74eb0044d846a2ca0e3977d8c09ac4c58e9b6c555c448ce6b3161f601f5ff6308209655c42239a5b651d227bd1939123233f0789be2bb662
|
@@ -397,16 +397,17 @@ module MmTool
|
|
397
397
|
d = language.downcase == 'und'
|
398
398
|
e = title != nil && ! @defaults[:ignore_titles]
|
399
399
|
f = @defaults[:scan_type] == 'quality' && low_quality?
|
400
|
+
g = @defaults[:reencode] == true
|
400
401
|
|
401
402
|
if (a)
|
402
403
|
@actions |= [:drop]
|
403
404
|
end
|
404
405
|
|
405
|
-
if (!a && b)
|
406
|
+
if (!a && b && !g)
|
406
407
|
@actions |= [:copy]
|
407
408
|
end
|
408
409
|
|
409
|
-
if (!a && !b)
|
410
|
+
if (!a && !b) || (g)
|
410
411
|
@actions |= [:transcode]
|
411
412
|
end
|
412
413
|
|
@@ -414,7 +415,7 @@ module MmTool
|
|
414
415
|
@actions |= [:set_language]
|
415
416
|
end
|
416
417
|
|
417
|
-
if (a || !b || !c || d || e || f)
|
418
|
+
if (a || !b || !c || d || e || f || g)
|
418
419
|
@actions |= [:interesting]
|
419
420
|
end
|
420
421
|
|
data/lib/mm_tool/mm_tool_cli.rb
CHANGED
@@ -279,6 +279,12 @@ module MmTool
|
|
279
279
|
when '--encoder'
|
280
280
|
@defaults[:encoder] = validate_encoder_value(args[0], args[1])
|
281
281
|
|
282
|
+
when '--re-encode'
|
283
|
+
@defaults[:reencode] = true
|
284
|
+
|
285
|
+
when '--no-re-encode'
|
286
|
+
@defaults[:reencode] = true
|
287
|
+
|
282
288
|
#-----------------------
|
283
289
|
# Quality
|
284
290
|
#-----------------------
|
@@ -372,6 +372,20 @@ module MmTool
|
|
372
372
|
HEREDOC
|
373
373
|
},
|
374
374
|
|
375
|
+
:reencode => {
|
376
|
+
:default => 'false',
|
377
|
+
:value => nil,
|
378
|
+
:arg_short => nil,
|
379
|
+
:arg_long => '--re-encode',
|
380
|
+
:arg_format => nil,
|
381
|
+
:item_label => "Re-encode the video stream, even if it wouldn't otherwise be required.",
|
382
|
+
:help_group => 'Transcoding Options',
|
383
|
+
:help_desc => <<~HEREDOC
|
384
|
+
Use #{C.bold('--re-encode')} to force re-encoding of the file, even if it isn't necessary.
|
385
|
+
Use #{C.bold('--no-re-encode')} if you need to undo the option for subsequent input files.
|
386
|
+
HEREDOC
|
387
|
+
},
|
388
|
+
|
375
389
|
#----------------------------
|
376
390
|
# Quality Options
|
377
391
|
#----------------------------
|
data/lib/mm_tool/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm_tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Derry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-table
|