mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-04 07:06:58 +02:00
fix(download): verify ReplayGain tags independently of metadata embedding
This commit is contained in:
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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user