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

Support context bindings when testing with sample data

This commit is contained in:
Reinhard Pointner 2017-03-26 21:17:26 +08:00
parent 38410c1676
commit 7663977c9a

View File

@ -424,6 +424,7 @@ public class FormatDialog extends JDialog {
protected MediaBindingBean restoreSample(Mode mode) {
Object info = null;
File media = null;
Map<File, ?> context = null;
try {
// restore sample from user preferences
@ -443,9 +444,10 @@ public class FormatDialog extends JDialog {
if (path != null && !path.isEmpty()) {
media = new File(path);
context = singletonMap(media, info);
}
return new MediaBindingBean(info, media);
return new MediaBindingBean(info, media, context);
}
private ExecutorService createExecutor() {