diff options
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r-- | classes/feedparser.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php index 239fdb7a6..9247bf450 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -115,6 +115,7 @@ class FeedParser { $this->type = $this::FEED_RSS; break; case "feed": + case "atom:feed": $this->type = $this::FEED_ATOM; break; default: @@ -141,8 +142,13 @@ class FeedParser { $link = $xpath->query("//atom:feed/atom:link[not(@rel)]")->item(0); if (!$link) + $link = $xpath->query("//atom:feed/atom:link[@rel='alternate']")->item(0); + + if (!$link) $link = $xpath->query("//atom03:feed/atom03:link[not(@rel)]")->item(0); + if (!$link) + $link = $xpath->query("//atom03:feed/atom03:link[@rel='alternate']")->item(0); if ($link && $link->hasAttributes()) { $this->link = $link->getAttribute("href"); |