mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
Support context bindings when testing with sample data
This commit is contained in:
parent
38410c1676
commit
7663977c9a
@ -424,6 +424,7 @@ public class FormatDialog extends JDialog {
|
|||||||
protected MediaBindingBean restoreSample(Mode mode) {
|
protected MediaBindingBean restoreSample(Mode mode) {
|
||||||
Object info = null;
|
Object info = null;
|
||||||
File media = null;
|
File media = null;
|
||||||
|
Map<File, ?> context = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// restore sample from user preferences
|
// restore sample from user preferences
|
||||||
@ -443,9 +444,10 @@ public class FormatDialog extends JDialog {
|
|||||||
|
|
||||||
if (path != null && !path.isEmpty()) {
|
if (path != null && !path.isEmpty()) {
|
||||||
media = new File(path);
|
media = new File(path);
|
||||||
|
context = singletonMap(media, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new MediaBindingBean(info, media);
|
return new MediaBindingBean(info, media, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExecutorService createExecutor() {
|
private ExecutorService createExecutor() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user