parser/rss: try to get link from guid isPermaLink=true
This commit is contained in:
parent
8a50539c44
commit
042003d55e
|
@ -25,6 +25,12 @@ class FeedItem_RSS extends FeedItem_Common {
|
||||||
return $link->getAttribute("href");
|
return $link->getAttribute("href");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$link = $this->elem->getElementsByTagName("guid")->item(0);
|
||||||
|
|
||||||
|
if ($link && $link->hasAttributes() && $link->getAttribute("isPermaLink") == "true") {
|
||||||
|
return $link->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
$link = $this->elem->getElementsByTagName("link")->item(0);
|
$link = $this->elem->getElementsByTagName("link")->item(0);
|
||||||
|
|
||||||
if ($link) {
|
if ($link) {
|
||||||
|
|
Loading…
Reference in New Issue