mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-05 13:47:25 +02:00
Look for media thumbnails in more places.
https://www.rssboard.org/media-rss#optional-elements
This commit is contained in:
parent
dea3f2dcb2
commit
f62aaa307b
@ -84,6 +84,7 @@ abstract class FeedItem_Common extends FeedItem {
|
||||
/**
|
||||
* this is common for both Atom and RSS types and deals with various 'media:' elements
|
||||
*
|
||||
* @see https://www.rssboard.org/media-rss
|
||||
* @return array<int, FeedEnclosure>
|
||||
*/
|
||||
function get_enclosures(): array {
|
||||
@ -142,7 +143,7 @@ abstract class FeedItem_Common extends FeedItem {
|
||||
}
|
||||
}
|
||||
|
||||
$enclosures = $this->xpath->query("media:thumbnail", $this->elem);
|
||||
$enclosures = $this->xpath->query("(.|media:content|media:group|media:group/media:content)/media:thumbnail", $this->elem);
|
||||
|
||||
/** @var DOMElement $enclosure */
|
||||
foreach ($enclosures as $enclosure) {
|
||||
|
Loading…
Reference in New Issue
Block a user