mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-05 21:57:24 +02:00
Merge branch 'bugfix/media-thumbnail' into 'master'
Look for media thumbnails in more places. See merge request tt-rss/tt-rss!166
This commit is contained in:
commit
bb39b34d72
@ -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