From: Andrew Dolgov Date: Thu, 4 Nov 2010 11:40:55 +0000 (+0300) Subject: generated feeds: support enclosures X-Git-Tag: 1.5.0~416 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c784546704d9a76933c0929e427ef826e35a70a0;p=tt-rss.git generated feeds: support enclosures --- diff --git a/functions.php b/functions.php index 6eafe808..601d59ec 100644 --- a/functions.php +++ b/functions.php @@ -3702,7 +3702,16 @@ print sanitize_rss($link, $line["content_preview"], false, $owner_uid); print "]]>"; - + + $enclosures = get_article_enclosures($link, $line["id"]); + + foreach ($enclosures as $e) { + $type = htmlspecialchars($e['content_type']); + $url = htmlspecialchars($e['content_url']); + $length = $e['duration']; + print ""; + } + print ""; }