forked from j62/ctbrec
Assume first .jpg is the contactsheet
This commit is contained in:
parent
4f8ffe0736
commit
5293affe4d
|
@ -303,7 +303,7 @@ public class Recording implements Serializable, Callable<Recording> {
|
||||||
|
|
||||||
public Optional<File> getContactSheet() {
|
public Optional<File> getContactSheet() {
|
||||||
return getAssociatedFiles().stream()
|
return getAssociatedFiles().stream()
|
||||||
.filter(filePath -> filePath.endsWith("contactsheet.jpg"))
|
.filter(filePath -> filePath.endsWith(".jpg"))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.map(File::new);
|
.map(File::new);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue