mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 19:36:52 +03:00
[FeedExpander] Handle Atom enclosures (#2039)
This commit is contained in:
parent
3423b3bbe1
commit
b754d14698
1 changed files with 3 additions and 1 deletions
|
@ -270,7 +270,9 @@ abstract class FeedExpander extends BridgeAbstract {
|
|||
foreach($feedItem->link as $link) {
|
||||
if(strtolower($link['rel']) === 'alternate') {
|
||||
$item['uri'] = (string)$link['href'];
|
||||
break;
|
||||
}
|
||||
if(strtolower($link['rel']) === 'enclosure') {
|
||||
$item['enclosures'][] = (string)$link['href'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue