diff --git a/src/processing/xmltv_parser.rs b/src/processing/xmltv_parser.rs index c6d3206f1..d4fcfe10b 100644 --- a/src/processing/xmltv_parser.rs +++ b/src/processing/xmltv_parser.rs @@ -55,8 +55,8 @@ pub(crate) fn parse_tvguide(content: &str) -> Option { } } Ok(Event::Text(e)) => { - let text = e.unescape().unwrap().into_owned(); - if !text.is_empty() { + let text = e.unescape().unwrap().trim().to_owned(); + if !text.is_empty() && !stack.is_empty() { stack.last_mut().unwrap().value = Some(text); } }