From de41395a45d2eac81b017f2cb1f052bb89563b65 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 7 Feb 2026 18:56:30 -0700 Subject: [PATCH] fix(dl): invert audio codec suffixing when splitting --- unshackle/commands/dl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unshackle/commands/dl.py b/unshackle/commands/dl.py index 047ba72..21b77e5 100644 --- a/unshackle/commands/dl.py +++ b/unshackle/commands/dl.py @@ -1830,11 +1830,11 @@ class dl: console=console, ) - if split_audio is not None: - merge_audio = not split_audio - else: - merge_audio = config.muxing.get("merge_audio", True) - append_audio_codec_suffix = merge_audio + merge_audio = ( + (not split_audio) if split_audio is not None else config.muxing.get("merge_audio", True) + ) + # When we split audio (merge_audio=False), multiple outputs may exist per title, so suffix codec. + append_audio_codec_suffix = not merge_audio multiplex_tasks: list[tuple[TaskID, Tracks, Optional[Audio.Codec]]] = [] # Track hybrid-processing outputs explicitly so we can always clean them up,