added pubdate and author to xml parser
All checks were successful
Vercel Preview Deployment / Deploy-Preview (push) Successful in 1m36s
All checks were successful
Vercel Preview Deployment / Deploy-Preview (push) Successful in 1m36s
This commit is contained in:
parent
41a2535a7b
commit
695f1009c2
@ -18,7 +18,9 @@
|
|||||||
const items = Array.from(xml.querySelectorAll('item')).map((item) => ({
|
const items = Array.from(xml.querySelectorAll('item')).map((item) => ({
|
||||||
title: item.querySelector('title')?.textContent,
|
title: item.querySelector('title')?.textContent,
|
||||||
link: item.querySelector('link')?.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;
|
feed = items;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user