fix(download): preserve native containers before legacy quality conversion

This commit is contained in:
zarzet
2026-09-07 01:09:30 +07:00
parent 660ed9fb60
commit e8bf40ae41
@@ -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);
}