fix(download): verify ReplayGain tags independently of metadata embedding

This commit is contained in:
zarzet committed 2026-09-30 20:58:18 +07:00
1 parent 2538cdffe1
commit fb08110797
2 files changed
+9 -6

No files matched your search

@@ -922,7 +922,8 @@ object NativeDownloadFinalizer {
}
val deleteScanPath = scanPath != state.filePath
val scan = try {
scanReplayGain(scanPath, shouldCancel) ?: return null
scanReplayGain(scanPath, shouldCancel)
?: throw IllegalStateException("ReplayGain analysis produced no valid measurement")
} finally {
if (deleteScanPath) File(scanPath).delete()
}