Skip to content

Commit

Permalink
Execute only distinct commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed May 27, 2019
1 parent 877e52c commit d1c1f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/filebot/cli/ExecCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public IntStream execute(Stream<MediaBindingBean> group) {
private IntStream executeSequence(Stream<MediaBindingBean> group) {
return group.map(v -> {
return template.stream().map(t -> getArgumentValue(t, v)).filter(Objects::nonNull).collect(toList());
}).mapToInt(this::execute);
}).distinct().mapToInt(this::execute);
}

private IntStream executeParallel(Stream<MediaBindingBean> group) {
Expand Down

0 comments on commit d1c1f02

Please sign in to comment.