more tweaks

This commit is contained in:
dreamer 2026-04-25 16:45:19 +02:00
parent c2577ad3dc
commit 223d62f2a3
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ app:get("/latest.json", function(self)
return handlers.Latesthandler(self)
end)
app:get("/latest.xml", function(self)
app:get("/latest.rss", function(self)
self.titles = page_titles
return handlers.RSShandler(self)
end)

View File

@ -4,14 +4,16 @@
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<atom:link href="https://<%= titles['url'] %>/latest.rss"
rel="self" type="application/rss+xml" />
<title><%= titles['name'] %></title>
<link>https://<%= titles['url'] %></link>
<language>en-us</language>
<itunes:author>Intergalactic FM</itunes:author>
<description>Latest uploads</description>
<itunes:explicit>false</itunes:explicit>
<itunes:category>Music</itunes:category>
<itunes:image>https://intergalactic.fm/themes/custom/ifm/logo.svg</itunes:image>
<itunes:category text="Music"/>
<itunes:image href="https://intergalactic.fm/themes/custom/ifm/logo.svg"/>
<% for i, file in ipairs(latestpath) do %>
<item>