Added {dc} duplicate count binding and improved support for testing expressions and bindings with real data

This commit is contained in:
Reinhard Pointner 2016-12-06 00:17:32 +09:00
parent 55aa87ffa1
commit a106151ca4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
} }