now we even have items
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m27s
CI/CD Pipeline / deploy (push) Successful in 1m47s

This commit is contained in:
Philipp Hofer
2025-10-13 09:32:54 +02:00
parent 2e0349bda0
commit 40e1376cfe

View File

@@ -19,13 +19,15 @@ fn feed(urls: &Vec<String>) -> String {
ret.push_str(r#"<rss version="2.0">"#);
ret.push_str("<channel>");
ret.push_str("<title>Ö1 Morgenjournal Feed</title>");
ret.push_str("<link>news.hofer.link</link>");
ret.push_str("<link>https://news.hofer.link</link>");
ret.push_str("<description>Feed für Ö1 Morgenjournal. Live.</description>");
for url in urls {
ret.push_str("<item>");
ret.push_str(&format!("<title>{url}</title>"));
ret.push_str(&format!("<link>{url}</link>"));
ret.push_str(&format!("<description>{url}</description>"));
ret.push_str("</item>");
}
ret.push_str("</channel>");