Added {dc} duplicate count binding and improved support for testing expressions and bindings with real data
This commit is contained in:
parent
55aa87ffa1
commit
a106151ca4
|
@ -1013,7 +1013,7 @@ public class CmdlineOperations implements CmdlineInterface {
|
||||||
ExpressionFormat formatter = format != null ? format : new ExpressionFormat("{fn} [{resolution} {vc} {channels} {ac} {minutes}m]");
|
ExpressionFormat formatter = format != null ? format : new ExpressionFormat("{fn} [{resolution} {vc} {channels} {ac} {minutes}m]");
|
||||||
|
|
||||||
// lazy format
|
// lazy format
|
||||||
return new FunctionList<File, String>(selection, f -> formatter.format(new MediaBindingBean(xattr.getMetaInfo(f), f, null)));
|
return new FunctionList<File, String>(selection, f -> formatter.format(new MediaBindingBean(xattr.getMetaInfo(f), f)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class ExpressionFileFilter implements FileFilter {
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File f) {
|
public boolean accept(File f) {
|
||||||
try {
|
try {
|
||||||
return filter.matches(new MediaBindingBean(xattr.getMetaInfo(f), f, null));
|
return filter.matches(new MediaBindingBean(xattr.getMetaInfo(f), f));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
debug.warning("Filter expression failed: " + e);
|
debug.warning("Filter expression failed: " + e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue