aboutsummaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-01-27 16:44:03 +0300
committerValentin Popov <info@valentineus.link>2019-01-27 16:44:03 +0300
commit6d73e2d160bcac9e4913f8e0f5dee00c558e6944 (patch)
treeb5433525f7628d905191f1be52d59dcf4b7d8d5a /src/parser.rs
parent33d1a608e6f2718b045d08fa530ba1790a21ff36 (diff)
downloadbbb2json-6d73e2d160bcac9e4913f8e0f5dee00c558e6944.tar.xz
bbb2json-6d73e2d160bcac9e4913f8e0f5dee00c558e6944.zip
Sun, 27 Jan 2019 17:44:03 +0400
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 20984c9..b2fe19a 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -31,20 +31,20 @@ pub fn parser(content: BufReader<File>) -> ParserResult {
let attr_name: String = attribute.name.local_name.to_string();
let attr_value: String = attribute.value.to_string();
- if el_name == "meeting" && attr_name == "id" {
- data.meeting_id = attr_value.clone();
+ if el_name == "metadata" && attr_name == "bn-recording-status" {
+ data.context = serde_json::from_str(&attr_value).unwrap();
}
if el_name == "meeting" && attr_name == "externalId" {
data.external_id = attr_value.clone();
}
- if el_name == "meeting" && attr_name == "name" {
- data.meeting_name = attr_value.clone();
+ if el_name == "meeting" && attr_name == "id" {
+ data.meeting_id = attr_value.clone();
}
- if el_name == "metadata" && attr_name == "bn-recording-status" {
- data.context = serde_json::from_str(&attr_value).unwrap();
+ if el_name == "meeting" && attr_name == "name" {
+ data.meeting_name = attr_value.clone();
}
}
}