added pubdate and author to xml parser
All checks were successful
Vercel Preview Deployment / Deploy-Preview (push) Successful in 1m36s

This commit is contained in:
christian 2024-05-18 23:13:50 +02:00
parent 41a2535a7b
commit 695f1009c2

View File

@ -18,7 +18,9 @@
const items = Array.from(xml.querySelectorAll('item')).map((item) => ({
title: item.querySelector('title')?.textContent,
link: item.querySelector('link')?.textContent,
description: item.querySelector('description')?.textContent
description: item.querySelector('description')?.textContent,
published: item.querySelector('pubDate')?.textContent,
author: item.querySelector('author')?.textContent
}));
feed = items;
} catch (err) {