2021-12-12 15:28:19 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-18 15:14:47 +01:00
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2021-12-12 15:28:19 +01:00
|
|
|
<channel>
|
|
|
|
<title>{{ title }}</title>
|
|
|
|
<link>{{ log_path }}</link>
|
|
|
|
<description>Collective log writing using XMPP chat groups and LogBot.</description>
|
|
|
|
<lastBuildDate>{{ date }}</lastBuildDate>
|
2022-02-18 15:17:30 +01:00
|
|
|
<atom:link href="{{ feed_path }}" rel="self" type="application/rss+xml" />
|
2022-02-18 12:23:07 +01:00
|
|
|
{% for x, post in db["messages"].items() %}
|
|
|
|
<item>
|
2022-02-18 16:11:40 +01:00
|
|
|
<title>{{ title }} #{{ x }}</title>
|
2021-12-12 15:28:19 +01:00
|
|
|
<link>{{ log_path }}#{{ x }}</link>
|
2022-02-18 12:23:07 +01:00
|
|
|
<guid>{{ log_path }}#{{ x }}</guid>
|
2022-02-18 16:51:52 +01:00
|
|
|
<description>
|
|
|
|
{% if 'media' in post %}
|
2022-02-18 17:11:12 +01:00
|
|
|
<p>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% if 'image' in post.media.type %}
|
2022-02-18 17:20:53 +01:00
|
|
|
<img src="{{ log_folder_url }}/{{ post.media.path }}" loading="lazy"></img>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% elif 'application' in post.media.type %}
|
2022-02-18 17:20:53 +01:00
|
|
|
<iframe src="{{ log_folder_url }}/{{ post.media.path }}" loading="lazy"></iframe>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% elif 'audio' in post.media.type %}
|
2022-02-18 17:20:53 +01:00
|
|
|
<audio src="{{ log_folder_url }}/{{ post.media.path }}" preload="none"></audio>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% elif 'video' in post.media.type %}
|
2022-02-18 17:20:53 +01:00
|
|
|
<video src="{{ log_folder_url }}/{{ post.media.path }}" preload="none"></video>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% else %}
|
|
|
|
The media file is not added to the RSS feed :(.
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% else %}
|
2022-02-18 17:11:12 +01:00
|
|
|
<p>{{ post.post }}</p>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% endif %}
|
|
|
|
</description>
|
2022-02-18 17:20:53 +01:00
|
|
|
{% if 'media' in post %}<enclosure url="{{ log_folder_url }}/{{ post.media.path }}" length="{{ post.media.size }}" type="{{ post.media.type }}" />{% endif %}
|
2021-12-12 15:28:19 +01:00
|
|
|
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogBot</dc:creator>
|
|
|
|
<pubDate>{{ post.date }}</pubDate>
|
2022-02-18 12:23:07 +01:00
|
|
|
</item>
|
|
|
|
{% endfor %}
|
2021-12-12 15:28:19 +01:00
|
|
|
</channel>
|
|
|
|
</rss>
|