add media
This commit is contained in:
@@ -26,6 +26,10 @@ fn feed(urls: &Vec<String>) -> String {
|
|||||||
ret.push_str("<item>");
|
ret.push_str("<item>");
|
||||||
ret.push_str(&format!("<title>Morgenjournal</title>"));
|
ret.push_str(&format!("<title>Morgenjournal</title>"));
|
||||||
ret.push_str(&format!("<link>{}</link>", quick_xml::escape::escape(url)));
|
ret.push_str(&format!("<link>{}</link>", quick_xml::escape::escape(url)));
|
||||||
|
ret.push_str(&format!(
|
||||||
|
"<enclosure url=\"{}\" length=\"0\" type=\"audio/mpeg\"/>\n",
|
||||||
|
quick_xml::escape::escape(url)
|
||||||
|
));
|
||||||
ret.push_str(&format!("<description>Morgenjournal</description>"));
|
ret.push_str(&format!("<description>Morgenjournal</description>"));
|
||||||
ret.push_str("</item>");
|
ret.push_str("</item>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user