mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Fix negative replay gain values
This commit is contained in:
parent
3e1c3133ca
commit
321994496a
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ public class ReplayGainUtil {
|
||||||
|
|
||||||
private static Float parseReplayGainTag(Metadata.Entry entry) {
|
private static Float parseReplayGainTag(Metadata.Entry entry) {
|
||||||
try {
|
try {
|
||||||
return Float.parseFloat(entry.toString().replaceAll("[^\\d.]", ""));
|
return Float.parseFloat(entry.toString().replaceAll("[^\\d.-]", ""));
|
||||||
} catch (NumberFormatException exception) {
|
} catch (NumberFormatException exception) {
|
||||||
return 0f;
|
return 0f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue