2022-03-29 13:30:31 -04:00
|
|
|
{contentType application/rss+xml}
|
|
|
|
{do header('Content-Disposition: attachment; filename="' . $title . '.rss' . '"')}
|
2022-09-03 06:59:36 -04:00
|
|
|
{var $full_link = path($link)}
|
2022-03-29 13:30:31 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<channel>
|
|
|
|
<title>{$title}</title>
|
|
|
|
<description><![CDATA[{$desc}]]></description>
|
|
|
|
<link>{$full_link}</link>
|
|
|
|
<atom:link href="{$full_link . '/rss'}" rel="self" type="application/rss+xml"></atom:link>
|
|
|
|
{foreach $items as $item}
|
|
|
|
<item>
|
|
|
|
<title>{$item->desc}</title>
|
2022-06-21 14:18:07 -04:00
|
|
|
<description><![CDATA[<p>{$item->desc}</p><video controls="controls" preload="auto" src="{path('/stream?url=' . urlencode($item->video->playAddr))}"></video>]]></description>
|
2022-03-29 13:30:31 -04:00
|
|
|
<link>{path('/@' . $item->author->uniqueId . '/video/' . $item->id)}</link>
|
2022-05-18 05:44:58 -04:00
|
|
|
<pubDate>{date('r', $item->createTime)}</pubDate>
|
2022-03-29 13:30:31 -04:00
|
|
|
<guid isPermaLink="false">{$item->id}</guid>
|
|
|
|
</item>
|
|
|
|
{/foreach}
|
|
|
|
</channel>
|
|
|
|
</rss>
|