From: Andrew Dolgov Date: Mon, 20 May 2013 11:01:18 +0000 (+0400) Subject: parser/rss: try to get link from guid isPermaLink=true X-Git-Tag: 1.8~79 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=042003d55e4f77382ca6f312b4d27533aa5dbc75;p=tt-rss.git parser/rss: try to get link from guid isPermaLink=true --- diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 2c29e318..34dfee1f 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -25,6 +25,12 @@ class FeedItem_RSS extends FeedItem_Common { 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); if ($link) {