From bc421e6b8a76867ab0ad784c616307079f989770 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 1 Oct 2016 01:50:26 +0800 Subject: [PATCH] Make sure to load Groovy (i.e don't just use simple variables) before displaying the Format Editor window --- source/net/filebot/ui/rename/FormatDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/ui/rename/FormatDialog.java b/source/net/filebot/ui/rename/FormatDialog.java index de6e6150..9218cf36 100644 --- a/source/net/filebot/ui/rename/FormatDialog.java +++ b/source/net/filebot/ui/rename/FormatDialog.java @@ -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);