mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-29 20:42:31 +02:00
Added blocks to mapper,
Added first function to mapper
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user