mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-28 17:52:50 +01:00
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:
@@ -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()
|
||||
);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user