Show LB placeholder in case of image loading errors

Tags: #<Tag:0x00007f31bb0e4fe0>

I was thinking of closing down my account recently and so I was browsing to… I don’t known, have a look.

I noticed cover arts on releases have loading errors on my PC (never mind this, it’s probably my company’s zScaler/proxy/firewall/anything).

In the case of loading errors, the browser will not display nicely:

User "jesus2099" - ListenBrainz Failed to load resource: net::ERR_EMPTY_RESPONSE

I also have those, but I guess it’s no issue, it’s normal when a release has no cover arts and in this case the placeholder is shown: Failed to load resource: the server responded with a status of 404 (NOT FOUND)

I think it should display the ListenBrainz placeholder in case of error event.

Another oddity is that in this case, the alt text was Cover Ar instead of the actual release title:

永遠の歌声 VOL.1 オリジナル曲のすべて
<img src="" alt="Cover art">

Although other loading error images do have a proper alt text:

<img src="" alt="Hour of the Nightingale">

And it doesn’t seem related to non-Latin characters as there are some showing in this other case:

<img src="" alt="ライブ収録盤">

Long release title, will also lead to worse display:


1 Like