From e8bf40ae410a1b3e43d83e2d724cccac80ea8ce4 Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Mon, 7 Sep 2026 01:09:30 +0700 Subject: [PATCH] fix(download): preserve native containers before legacy quality conversion --- .../download_queue_provider_single_item.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/providers/download_queue_provider_single_item.dart b/lib/providers/download_queue_provider_single_item.dart index 841da951..d3471749 100644 --- a/lib/providers/download_queue_provider_single_item.dart +++ b/lib/providers/download_queue_provider_single_item.dart @@ -931,18 +931,18 @@ class _DownloadRun { if (isM4aFile || shouldForceDashSafM4aHandling) { if (isContentUriPath && effectiveSafMode) { - if (quality == 'HIGH') { - await _convertSafM4aToLossy(path); - } else if (shouldPreserveNativeM4a) { + if (shouldPreserveNativeM4a) { await _preserveSafNativeM4a(path); + } else if (quality == 'HIGH') { + await _convertSafM4aToLossy(path); } else { await _convertSafM4aToFlac(path); } } else { - if (quality == 'HIGH') { - await _convertLocalM4aToLossy(path); - } else if (shouldPreserveNativeM4a) { + if (shouldPreserveNativeM4a) { await _preserveLocalNativeM4a(path); + } else if (quality == 'HIGH') { + await _convertLocalM4aToLossy(path); } else { await _convertLocalM4aToFlac(path); }