Make sure cover art is always https.
This commit is contained in:
parent
4fe695f90c
commit
11a3a083db
|
@ -64,6 +64,7 @@ function insertHtml(listen, image) {
|
|||
const text = `${listen.track_metadata.artist_name} - ${listen.track_metadata.track_name}`;
|
||||
const alt = image === undefined ? 'ListenBrainz Logo' : `${text} Cover Art`;
|
||||
|
||||
image = image.startsWith('http://') ? 'https' + image.slice(4) : image;
|
||||
image = image ?? 'https://listenbrainz.org/static/img/logo_big.svg';
|
||||
|
||||
const listenHtml = `<p class="listenbrainz">
|
||||
|
|
Loading…
Reference in New Issue