1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

Streamify --filter --format -exec pipeline

This commit is contained in:
Reinhard Pointner 2019-05-19 04:01:12 +07:00
parent 9bc0871b92
commit e35e905fa9

View File

@ -1104,9 +1104,7 @@ public class CmdlineOperations implements CmdlineInterface {
@Override
public IntStream execute(Collection<File> files, FileFilter filter, ExpressionFormat format, ExecCommand exec) {
// filter / map / execute
return exec.execute(files.stream().filter(filter::accept).map(f -> {
return new MediaBindingBean(xattr.getMetaInfo(f), f);
}).peek(b -> {
return exec.execute(files.stream().filter(filter::accept).map(f -> new MediaBindingBean(xattr.getMetaInfo(f), f)).peek(b -> {
if (format != null) {
try {
log.info(format.format(b));