derivar url de feed url
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
para el de copiona
This commit is contained in:
parent
4ddc841f04
commit
895201f3ab
1 changed files with 5 additions and 1 deletions
|
@ -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 ||
|
||||
|
|
Reference in a new issue