mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-08 17:21:17 +02:00
generated feeds: support enclosures
This commit is contained in:
parent
fb8d17f3fb
commit
c784546704
@ -3702,7 +3702,16 @@
|
|||||||
|
|
||||||
print sanitize_rss($link, $line["content_preview"], false, $owner_uid);
|
print sanitize_rss($link, $line["content_preview"], false, $owner_uid);
|
||||||
print "]]></description>";
|
print "]]></description>";
|
||||||
|
|
||||||
|
$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 "<enclosure url=\"$url\" type=\"$type\" length=\"$length\"/>";
|
||||||
|
}
|
||||||
|
|
||||||
print "</item>";
|
print "</item>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user