1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Optimize default -mediainfo format

This commit is contained in:
Reinhard Pointner 2016-11-26 05:02:04 +08:00
parent 94f5e5ade4
commit be134d7513

View File

@ -1057,7 +1057,7 @@ public class CmdlineOperations implements CmdlineInterface {
@Override
public List<String> getMediaInfo(Collection<File> files, String format, String filter) throws Exception {
ExpressionFormat formatter = new ExpressionFormat(format != null && format.length() > 0 ? format : "{fn} [{resolution} {vc} {channels} {ac} {minutes+'m'}]");
ExpressionFormat formatter = new ExpressionFormat(format != null && format.length() > 0 ? format : "{fn} [{resolution} {vc} {channels} {ac} {minutes}m]");
List<File> selection = filter(files, filter == null || filter.isEmpty() ? f -> true : new ExpressionFileFilter(new ExpressionFilter(filter), false));
return new FunctionList<File, String>(selection, f -> formatter.format(new MediaBindingBean(xattr.getMetaInfo(f), f, null)));