mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-05 15:32:31 +02:00
fixed epg parsing when newline used in epg file
This commit is contained in:
@@ -55,8 +55,8 @@ pub(crate) fn parse_tvguide(content: &str) -> Option<TVGuide> {
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user