Added blocks to mapper,

Added first function to mapper
This commit is contained in:
euzu
2025-06-05 15:27:10 +02:00
parent 1191049b1a
commit a629c46129
5 changed files with 528 additions and 252 deletions
+1 -3
View File
@@ -132,9 +132,7 @@ fn map_channel(mut channel: PlaylistItem, mapping: &Mapping) -> PlaylistItem {
let mut accessor = ValueAccessor { pli: ref_chan };
if let Some(filter) = &m.t_filter {
if filter.filter(&provider) {
if let Err(err) = script.eval(&mut accessor) {
error!("Error while evaluating script: {err}");
}
script.eval(&mut accessor);
}
}
}