Feature/staged input and path improvements (#632)

* No template file not found error message
* Setup wizard improvmenets
* path improvements
* staged input fix
* path improvements
* Provider dns resolved ips now writing to a file instead of source.yml
* Playlist update hard kill after 1h
* matadata update tmdb fix
* Web UI fixes
* GeoIp update schedule
* batch:// prefix  for aliases
This commit is contained in:
euzu
2026-03-06 17:29:42 +01:00
committed by GitHub
parent c5632d0c98
commit 737d04d08b
82 changed files with 2506 additions and 1433 deletions
+14 -24
View File
@@ -802,33 +802,23 @@ impl<'a> MapperContext<'a> {
BuiltInFunction::ToNumber
| BuiltInFunction::Template
| BuiltInFunction::First
| BuiltInFunction::AddFavourite => {
if args.len() > 1 {
return info_err_res!(
"Function accepts only one argument {:?}, {} given",
name,
args.len()
);
}
| BuiltInFunction::AddFavourite
if args.len() > 1 =>
{
return info_err_res!("Function accepts only one argument {:?}, {} given", name, args.len());
}
BuiltInFunction::Split => {
if args.len() != 2 {
return info_err_res!("Function accepts two arguments {:?}, {} given", name, args.len());
}
BuiltInFunction::Split if args.len() != 2 => {
return info_err_res!("Function accepts two arguments {:?}, {} given", name, args.len());
}
BuiltInFunction::Replace => {
if args.len() != 3 {
return info_err_res!("Function accepts three arguments {:?}, {} given", name, args.len());
}
BuiltInFunction::Replace if args.len() != 3 => {
return info_err_res!("Function accepts three arguments {:?}, {} given", name, args.len());
}
BuiltInFunction::Pad => {
if !(args.len() == 3 || args.len() == 4) {
return info_err_res!(
"Function accepts three or four arguments {:?}, {} given",
name,
args.len()
);
}
BuiltInFunction::Pad if !(args.len() == 3 || args.len() == 4) => {
return info_err_res!(
"Function accepts three or four arguments {:?}, {} given",
name,
args.len()
);
}
_ => {}
}