Browse Source

parser/rss: try to get link from guid isPermaLink=true

Andrew Dolgov 11 years ago
parent
commit
042003d55e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      classes/feeditem/rss.php

+ 6 - 0
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) {