1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

support media:description for media: enclosures

This commit is contained in:
Andrew Dolgov
2013-08-05 12:26:09 +04:00
parent 6bf61bdc63
commit 5c54e68388
6 changed files with 29 additions and 3 deletions

View File

@@ -146,6 +146,9 @@ class FeedItem_Atom extends FeedItem_Common {
$enc->link = $enclosure->getAttribute("url");
$enc->length = $enclosure->getAttribute("length");
$desc = $this->xpath->query("media:description", $enclosure)->item(0);
if ($desc) $enc->title = strip_tags($desc->nodeValue);
array_push($encs, $enc);
}