Skip to content

Commit

Permalink
LUFS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuffington committed Jul 11, 2020
1 parent 77f2bc1 commit de94b6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/georgia-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ function on_metadb_changed(handle_list, fromhook) {
str.title_lower = ' ' + title;
str.original_artist = original_artist;
str.artist = artist;
str.year = $('[$year($if3(%original release date%,%originaldate%,%date%,%fy_upload_date%))]');
str.year = $('[$year($if3(%original release date%,%originaldate%,%date%,%fy_upload_date%))]');
if (str.year === '0000') {
str.year = '';
}
Expand All @@ -1510,6 +1510,8 @@ function on_metadb_changed(handle_list, fromhook) {
else codec = codec + "-" + $("$info(codec_profile)");
}
str.trackInfo = $(codec + '[ | %replaygain_album_gain%]');
// TODO: Add LUFS option?
// str.trackInfo += $('$if(%replaygain_track_gain%, | LUFS $puts(l,$sub(-1800,$replace(%replaygain_track_gain%,.,)))$div($get(l),100).$right($get(l),2) dB,)');

str.disc = fb.TitleFormat(tf.disc).Eval();

Expand Down

0 comments on commit de94b6f

Please sign in to comment.