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:
parent
9bc0871b92
commit
e35e905fa9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user