Jaded-Encoding-Thaumaturgy / muxtools

Automation package for everything related to encoding and subbing
Mozilla Public License 2.0
13 stars 9 forks source link

Sox: remove stray `dither` #4

Closed sgt0 closed 1 year ago

sgt0 commented 1 year ago

dither was removed in 99d7455.

Fixes:

    audio_en = do_audio(USABD, track=0, encoder=FLAC(), trims=(-38, None))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib\site-packages\vsmuxtools\extension\audio.py", line 105, in do_audio
    return mt_audio(fileIn, track, trims, fps, num_frames, extractor, trimmer, encoder, quiet, output)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib\site-packages\muxtools\functions.py", line 79, in do_audio
    trimmed = trimmer.trim_audio(audio, quiet)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib\site-packages\muxtools\audio\extractors.py", line 318, in trim_audio
    source = ensure_valid_in(input, dither=False, caller=self, supports_pipe=False)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ensure_valid_in() got an unexpected keyword argument 'dither'
Vodes commented 1 year ago

Oh oops forgot about that. Thanks