now we even have items
This commit is contained in:
@@ -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>");
|
||||
|
Reference in New Issue
Block a user