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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 838e00200ac9573bc5fce1a76eef71cbc86c5e3195099b373880efce44e07e94
4
- data.tar.gz: c49fa4ba32a8dedd873f26a5a5f01aee28cf17debd6a97e7648b1d79cfb2328d
3
+ metadata.gz: a63e56b4daf6147ab5bf8a968e67cd15877019b987b8b342b6c2f609e7bff512
4
+ data.tar.gz: b7cd0fecb70eda41d1963421f7fa037aeae0ba75ca3b24c15d4f84b9cc4281d9
5
5
  SHA512:
6
- metadata.gz: a0dda890c4cdfcfb17e65fb1ce6a3f3c9aaa54492dca70d8b95cbe65e4ec7db2419d384f786a596a3fdf5baf3f76feaf0ae6048074e21169bbb8cbe39d90ab5b
7
- data.tar.gz: 2d9636fbd44b52de18d8c1a89ed4ab3078238b6e0c6111fa072fd1b6539eb590b311279f3112f28ccf8e7aed75dfa01d039f2e6ce96a5f1715a9242d8cf26d89
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
 
@@ -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
  #----------------------------
@@ -1,3 +1,3 @@
1
1
  module MmTool
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
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.10
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-15 00:00:00.000000000 Z
11
+ date: 2024-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-table