mirror of https://github.com/danoloan10/rss-bridge
[FeedExpander] Handle Atom enclosures (#2039)
This commit is contained in:
parent
3423b3bbe1
commit
b754d14698
|
@ -270,7 +270,9 @@ abstract class FeedExpander extends BridgeAbstract {
|
||||||
foreach($feedItem->link as $link) {
|
foreach($feedItem->link as $link) {
|
||||||
if(strtolower($link['rel']) === 'alternate') {
|
if(strtolower($link['rel']) === 'alternate') {
|
||||||
$item['uri'] = (string)$link['href'];
|
$item['uri'] = (string)$link['href'];
|
||||||
break;
|
}
|
||||||
|
if(strtolower($link['rel']) === 'enclosure') {
|
||||||
|
$item['enclosures'][] = (string)$link['href'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue