diff --git a/lib/routes/aeon/utils.tsx b/lib/routes/aeon/utils.tsx index 7500e7eb9..4d9e71725 100644 --- a/lib/routes/aeon/utils.tsx +++ b/lib/routes/aeon/utils.tsx @@ -95,6 +95,15 @@ export const getData = async (list) => { delete item.image; item.enclosure_url = data.audioUrl; item.enclosure_type = 'audio/mpeg'; + } else if (data.image?.url) { + const imageUrl = data.image.url; + const cleanImageUrl = imageUrl.split('?')[0].toLowerCase(); + + item.enclosure_url = imageUrl; + if (cleanImageUrl.endsWith('.jpg') || cleanImageUrl.endsWith('.jpeg')) { + item.enclosure_type = 'image/jpeg'; + } + item.image = imageUrl; } const capture = load(data.body, null, false);