diff --git a/public/img/europe/italy/mi-amigo-radio.jpg b/public/img/europe/italy/mi-amigo-radio.jpg new file mode 100644 index 000000000..67949487c Binary files /dev/null and b/public/img/europe/italy/mi-amigo-radio.jpg differ diff --git a/public/radio/europe/italy.json b/public/radio/europe/italy.json index 98bfceb4e..99e72f715 100644 --- a/public/radio/europe/italy.json +++ b/public/radio/europe/italy.json @@ -389,6 +389,6 @@ "language": "Italian", "cros": false, "stream": "https://nr12.newradio.it:8662/Live", - "features": "https://www.miamigoradio.it/css-img/logoRadioMiAmigo.svg" + "features": "/img/europe/italy/mi-amigo-radio.jpg" } } diff --git a/tests/mi-amigo-radio.test.mjs b/tests/mi-amigo-radio.test.mjs index d86918450..1c9abc941 100644 --- a/tests/mi-amigo-radio.test.mjs +++ b/tests/mi-amigo-radio.test.mjs @@ -16,7 +16,7 @@ test('Mi Amigo Radio offers its direct AAC stream then the configured CORS fallb assert.equal(entry.url, 'https://www.miamigoradio.it/'); assert.equal(entry.type, 'audio/aac'); assert.equal(entry.stream, 'https://nr12.newradio.it:8662/Live'); - assert.equal(entry.features, 'https://www.miamigoradio.it/css-img/logoRadioMiAmigo.svg'); + assert.equal(entry.features, '/img/europe/italy/mi-amigo-radio.jpg'); assert.equal(entry.cros, false); const corsServer = 'https://cors.example/'; @@ -38,3 +38,10 @@ test('Mi Amigo Radio offers its direct AAC stream then the configured CORS fallb ], ); }); + +test('Mi Amigo Radio artwork is an available local JPEG', () => { + const logo = readFileSync(new URL('../public/img/europe/italy/mi-amigo-radio.jpg', import.meta.url)); + // A JPEG begins with the Start Of Image marker followed by another marker. + assert.deepEqual([...logo.subarray(0, 3)], [0xff, 0xd8, 0xff]); + assert.ok(logo.length > 1024, 'station artwork should not be an empty placeholder'); +});