Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


HTML codes appearing in rendered album titles
#1
I noticed with version 9.1.4 2024-10-26 that HTML codes are sometimes appearing when rendering album titles.  Track titles and artist names appear to be fine, but single quotes and ampersands are being rendered with their HTML codes in the "albums by artist" list. Note in the third screenshot that an artist name with a single quote renders correctly in the album list, but the album title does not.  See attachments 1 ("Kill 'em All.png") and 2 ("Pride & Glory.png").

In the "now playing" bar the ampersand renders fine.  See attachment 3 ("Now playing.png").

In the playlist view, single quotes are rendered correctly.  See attachment 4 ("Playlist single quote.png").

However in the playlist view, with an ampersand the large album title renders fine, but the smaller one with the track info ("Track 1 * FLAC ...") contains the HTML code.  See attachment 5 ("Playlist ampersand.png").

Is this a bug, or could there be something wrong with my tags?


Attached Files Thumbnail(s)
                   
Reply
#2
Here's some example output from metaflac:

Code:
$ metaflac --show-all-tags 01\ -\ Hit\ the\ Lights.flac
ALBUM=Kill 'em All
ARTIST=Metallica
TITLE=Hit the Lights
TRACKNUMBER=1
TRACKTOTAL=10
REPLAYGAIN_REFERENCE_LOUDNESS=89.0 dB
REPLAYGAIN_TRACK_GAIN=-4.30 dB
REPLAYGAIN_TRACK_PEAK=0.98120117
REPLAYGAIN_ALBUM_GAIN=-5.19 dB
REPLAYGAIN_ALBUM_PEAK=1.00000000


Code:
$ metaflac --show-all-tags 01\ -\ Losin\'\ Your\ Mind.flac
ALBUM=Pride & Glory
ARTIST=Pride & Glory
TITLE=Losin' Your Mind
TRACKNUMBER=1
TRACKTOTAL=19
REPLAYGAIN_REFERENCE_LOUDNESS=89.0 dB
REPLAYGAIN_TRACK_GAIN=-10.08 dB
REPLAYGAIN_TRACK_PEAK=0.99963379
REPLAYGAIN_ALBUM_GAIN=-9.80 dB
REPLAYGAIN_ALBUM_PEAK=0.99969482


Code:
$ metaflac --show-all-tags 01\ -\ Symphony\ No.\ 6\ in\ A\ Minor\ \'Tragic\'\:\ I.\ Allegro\ energico\,\ ma\ non\ troppo.\ Heftig\,\ aber\ markig.flac
ALBUM=Symphony No. 6 in A Minor 'Tragic' (Berlin Philharmonic with Herbert von Karajan (conductor))
ARTIST=Gustav Mahler
TITLE=Symphony No. 6 in A Minor 'Tragic': I. Allegro energico, ma non troppo. Heftig, aber markig
TRACKNUMBER=1
TRACKTOTAL=4
REPLAYGAIN_REFERENCE_LOUDNESS=89.0 dB
REPLAYGAIN_TRACK_GAIN=-3.72 dB
REPLAYGAIN_TRACK_PEAK=0.99993896
REPLAYGAIN_ALBUM_GAIN=-3.63 dB
REPLAYGAIN_ALBUM_PEAK=0.99993896
Reply
#3
Very odd.

I have this Brubek album and it has single quote in the Album name and several track Titles have either single or double quotes and it renders fine everywhere in the WebUI.

Code:
pi@moode:~ $ metaflac --export-tags-to=- "/mnt/NAS/TRX-FLAC/Dave Brubeck/Dave Brubeck's Greatest Hits/02 I'm In A Dancing Mood.flac"
ENCODER=X Lossless Decoder 20161007
TITLE=I'm In A Dancing Mood
ARTIST=Dave Brubeck
ALBUM=Dave Brubeck's Greatest Hits
GENRE=Jazz
COMPOSER=Goodhart/M. SIGLER/Hoffman
ALBUMARTIST=Dave Brubeck
TRACKNUMBER=2
TRACKTOTAL=11
TOTALTRACKS=11
DISCNUMBER=1
DISCTOTAL=1
TOTALDISCS=1
DATE=1954

The --show-all-tags option does not exist in metaflac (the one that ships with moode) 

Code:
pi@moode:~ $ metaflac --show-all-tags
metaflac: unrecognized option `--show-all-tags'
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
Edit: not read correct...
Reply
#5
Interesting.  Here's what I see in the page source:

Code:
<ul id="albumsList" class="albumslist">
   <li class="lib-entry active">
       <img loading="lazy" src="/imagesw/thmcache/15dd8802536d940fc30b504caa282c06.jpg">
       <div class="tag-cover-text">
           <span class="album-name-art">Pride &amp; Glory</span>
           <span class="artist-name-art">Pride & Glory</span>
           <span class="album-year"></span>
           <span class="album-comment"></span>
       </div>
   </li>
</ul>

Perhaps I should mention that the paths to those albums also contain single quotes and ampersands.  Could that be an issue?
Reply
#6
Looks more like a bug. The &amp; is appearing as text instead of being translated to &.

I'll investigate.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Looking at a similar album on my end with an & in the name and I'm not seeing a bug yet.

Blues Bop & Ballads
   

HTML showing the entity &amp; which is translated correctly by the Browser in the screenshot above.
Code:
<li class="lib-entry active">
   <img loading="lazy" src="/imagesw/thmcache/8b641d5ac159d36b04aa7f38cd76f8c3.jpg">
   <div class="tag-cover-text">
       <span class="album-name-art">Blues Bop &amp; Ballads</span>
       <span class="artist-name-art">Scott Hamilton</span>
       <span class="album-year">(2006)</span><span class="album-comment"></span>
   </div>
   <div class="lib-encoded-at-notvisible">FLAC 16/44.1</div>
</li>

Browser console

Enter "filteredAlbums;" at the > prompt to show the contents of the array thats used to generate the HTML for the the Albums list.
   

Scroll down and expand the element.
It correctly shows "album: "Blues Bop &amp; Ballads"
   
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
Here's what filteredAlbums contains:  Note the "&amp;amp;"

   
Reply
#9
Similarly for the "Kill 'em All" album, I see: ""Kill &amp;#039;em All""

   
Reply
#10
Very odd.

Zip up the album(s) and PM a download link to myself, @TheOldPresbyope and @Nutul. One of us will see of the issue can be reproduced.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: