From: Andrew Dolgov Date: Wed, 5 Mar 2014 14:34:13 +0000 (+0400) Subject: get_feeds_from_html: add rel='alternate feed' X-Git-Tag: 1.12~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=526e1d80be3fe843798c4e26964e10e25a48ae7a;p=tt-rss.git get_feeds_from_html: add rel='alternate feed' --- diff --git a/include/functions2.php b/include/functions2.php index 4e979614..60c3fe59 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1779,7 +1779,7 @@ $doc->loadHTML($content); $xpath = new DOMXPath($doc); $entries = $xpath->query('/html/head/link[@rel="alternate" and '. - '(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed"]'); + '(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed" or @rel="alternate feed"]'); $feedUrls = array(); foreach ($entries as $entry) { if ($entry->hasAttribute('href')) {