Fish moh
This commit is contained in:
@@ -18,7 +18,12 @@ pub fn url(did: Did) -> XMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn moh(_did: Did) -> XMLElement {
|
pub fn moh(_did: Did) -> XMLElement {
|
||||||
let work = XMLElement::new("work");
|
let mut work = XMLElement::new("work");
|
||||||
|
|
||||||
|
let mut playback = XMLElement::new("playback");
|
||||||
|
playback.add_attribute("file", "local_stream://default");
|
||||||
|
work.add_child(playback).unwrap();
|
||||||
|
|
||||||
work
|
work
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +66,6 @@ pub fn add_playback(work: &mut XMLElement ,file_path: &str) {
|
|||||||
work.add_child(answer).unwrap();
|
work.add_child(answer).unwrap();
|
||||||
|
|
||||||
let mut playback = XMLElement::new("playback");
|
let mut playback = XMLElement::new("playback");
|
||||||
playback.add_attribute("name", "exten");
|
|
||||||
playback.add_attribute("file", &file_path);
|
playback.add_attribute("file", &file_path);
|
||||||
work.add_child(playback).unwrap();
|
work.add_child(playback).unwrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user