Commit bfa1b0b0 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

fix metatadata detection for MASA and increase max_workers

parent 8e29b2b9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -132,6 +132,9 @@ def main():

        # Load and cache input audio once per format
        if format not in input_audio_cache:
            if format.startswith("MASA"):
                input_audio = fromfile(format, infile, in_meta=infile.with_suffix(".met"))
            else:
                input_audio = fromfile(format, infile)
            input_loudness, _, input_loudness_format = get_loudness(input_audio)
            input_audio_cache[format] = (input_loudness, input_loudness_format)
@@ -163,7 +166,7 @@ def main():

    progressbar_update(0, total, width=50)

    with ThreadPoolExecutor(max_workers=8) as executor:
    with ThreadPoolExecutor(max_workers=32) as executor:
        # Submit all tasks
        futures = {
            executor.submit(process_output_file, *task): task[0] for task in tasks