1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

Make sure to load Groovy (i.e don't just use simple variables) before displaying the Format Editor window

This commit is contained in:
Reinhard Pointner 2016-10-01 01:50:26 +08:00
parent 527cd91a0d
commit bc421e6b8a

View File

@ -713,7 +713,7 @@ public class FormatDialog extends JDialog {
try {
// load all necessarily classes to avoid focus issues with RSyntaxTextArea
new RSyntaxTextArea(new RSyntaxDocument(SyntaxConstants.SYNTAX_STYLE_GROOVY));
new ExpressionFormat("{n} - {s00e00} - {t}");
new ExpressionFormat("{n.space('.').lower()}.{s}{e.pad(2)}");
new MediaInfo();
} catch (Throwable e) {
debug.log(Level.SEVERE, "Failed to initialize FormatDialog", e);