mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 22:05:20 +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) {
|
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…
Add table
Reference in a new issue