Initial commit

This commit is contained in:
2020-11-13 22:41:03 +01:00
commit bbfb050279
8 changed files with 2309 additions and 0 deletions

24
templates/feed.xml Normal file
View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss>
<channel>
<title>{{podcast.title}}</title>
<link>{{podcast.homepage}}</link>
{%- match podcast.logo_url %}
{%- when Some with (logo_url) %}
<image>
<title>{{podcast.title}} Logo</title>
<url>{{logo_url}}</url>
</image>
{%- when None %}
{%- endmatch %}
{%- for episode in podcast.episodes %}
<item>
<title>{{episode.title}}</title>
<enclosure url="{{episode.video_url}}" type="video/mpeg"/>
<guid>{{episode.guid}}</guid>
<pubDate>{{episode.pub_date.to_rfc2822()}}</pubDate>
</item>
{%- endfor %}
</channel>
</rss>