mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +02:00
[Bridge] Fix ATOM feed uri detection
This commit is contained in:
@@ -664,7 +664,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
|
|||||||
protected function load_ATOM_feed_data($content){
|
protected function load_ATOM_feed_data($content){
|
||||||
$this->name = $content->title;
|
$this->name = $content->title;
|
||||||
|
|
||||||
// Find most best link (only one, or first of 'alternate')
|
// Find best link (only one, or first of 'alternate')
|
||||||
if(!isset($content->link)){
|
if(!isset($content->link)){
|
||||||
$this->uri = '';
|
$this->uri = '';
|
||||||
} elseif (count($content->link) === 1){
|
} elseif (count($content->link) === 1){
|
||||||
@@ -673,7 +673,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
|
|||||||
$this->uri = '';
|
$this->uri = '';
|
||||||
foreach($content->link as $link){
|
foreach($content->link as $link){
|
||||||
if(strtolower($link['rel']) === 'alternate'){
|
if(strtolower($link['rel']) === 'alternate'){
|
||||||
$this->uri = $link['rel'];
|
$this->uri = $link['href'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user