derivar url de feed url
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

para el de copiona
This commit is contained in:
Cat /dev/Nulo 2023-12-28 16:00:37 -03:00
parent 4ddc841f04
commit 895201f3ab

View file

@ -45,7 +45,11 @@ function parseFeed(feedUrl, rawFeed) {
);
const feedUrll = new URL(feedUrl);
const link = linkDom?.attribs?.href || feedUrll.origin;
let link = feedUrll.origin;
if (linkDom?.attribs?.href) {
const hrefUrl = new URL(linkDom.attribs.href, feedUrl);
link = hrefUrl.toString();
}
if (
!feed ||
!feed.link ||