diff --git a/ChangeLog b/ChangeLog index 23533ebc5..afa2078ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,11 @@ 3.5.2 ----- -1. Revert back to "img" tags for no-playing images, resolves loadind if plugin +1. Revert back to "img" tags for no-playing images, resolves loading of plugin PNGs. -2. Convert replaygain to 2 digits before comparing against 0.00 -3. Ensure no repeated textkeys (apart from years). -4. Adjust grid view margins, thanks to Denys Lysiuk. -5. Remove now-playing shadow. -6. Fix showing artist first or last with context. +2. Ensure no repeated textkeys (apart from years). +3. Adjust grid view margins, thanks to Denys Lysiuk. +4. Remove now-playing shadow. +5. Fix showing artist first or last with context. 3.5.1 ----- diff --git a/MaterialSkin/HTML/material/html/js/utils.js b/MaterialSkin/HTML/material/html/js/utils.js index affe68249..c8c76ce5c 100644 --- a/MaterialSkin/HTML/material/html/js/utils.js +++ b/MaterialSkin/HTML/material/html/js/utils.js @@ -170,9 +170,9 @@ function formatTechInfo(item, source, isCurrent) { technical.push((item.samplerate/1000)+"kHz"); } if (undefined!=item.replay_gain) { - let val = parseFloat(item.replay_gain).toFixed(2); - if (undefined==isCurrent || !isCurrent || val!=0.00) { - technical.push(i18n("%1dB", val)); + let val = parseFloat(item.replay_gain); + if (undefined==isCurrent || !isCurrent || (val>0.000001 || val<-0.000001)) { + technical.push(i18n("%1dB", val.toFixed(2))); } } if (item.type) {