Commit 0e9c2b59 authored by Jan Kiene's avatar Jan Kiene
Browse files

only adjust selected modes for MC and no other mode

parent 4ce4c288
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -42,12 +42,12 @@ def get_modes(in_format: str) -> list:
    list_process = subprocess.run(cmd, capture_output=True)

    output = list_process.stdout.decode("utf8")
    mode_list = output.splitlines()

    # correction for multichannel modes to avoid selecting some mono modes...
    if in_format in MC_MODES:
        in_format = "MC_" + in_format + "_b"

    mode_list = [m for m in output.splitlines() if in_format in m]
        mode_list = [m for m in mode_list if in_format in m]

    return mode_list