From 53dd32c7d86a4fdd17d4c0a631948de5eadc54d3 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Tue, 9 Oct 2018 23:14:16 +0100 Subject: [PATCH] Fix: filter tag list in "browse by"-button (hide track, title, etc.) --- htdocs/js/mympd.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/js/mympd.js b/htdocs/js/mympd.js index 26e583f..7b89c2e 100644 --- a/htdocs/js/mympd.js +++ b/htdocs/js/mympd.js @@ -2394,12 +2394,15 @@ function selectTag(btnsEl, desc, setTo) { function addTagList(x, any) { var tagList = ''; + var tagBlacklist = ["Title", "MUSICBRAINZ_TRACKID", "Count", "Disc", "Comment", "Name"]; if (any == true) tagList += ''; for (var i = 0; i < settings.tags.length; i++) { - if (settings.tags[i] != 'Track') { - tagList += ''; - } + if (settings.tags[i] == 'Track') + continue; + if (any == false && tagBlacklist.indexOf(settings.tags[i]) > -1) + continue; + tagList += ''; } var tagListEl = document.getElementById(x); tagListEl.innerHTML = tagList;