diff --git a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy index e2024b18..d757b47a 100644 --- a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy +++ b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy @@ -21,8 +21,8 @@ File.metaClass.getFolders = { c -> def folders = []; traverse(type:DIRECTORIES, List.metaClass.getFolders = { c -> findResults{ it.getFolders(c) }.flatten().unique() } String.metaClass.eachMediaFolder = { c -> new File(delegate).eachMediaFolder(c) } -File.metaClass.eachMediaFolder = { c -> getFolders().findAll{ it.hasFile{ it.isVideo() } }.each(c) } -List.metaClass.eachMediaFolder = { c -> getFolders().findAll{ it.hasFile{ it.isVideo() } }.each(c) } +File.metaClass.eachMediaFolder = { c -> getFolders{ it.hasFile{ it.isVideo() } }.each(c) } +List.metaClass.eachMediaFolder = { c -> getFolders{ it.hasFile{ it.isVideo() } }.each(c) } // File utility methods diff --git a/source/net/sourceforge/filebot/ui/analyze/SplitTool.java b/source/net/sourceforge/filebot/ui/analyze/SplitTool.java index 2aee170f..4e5b3e1a 100644 --- a/source/net/sourceforge/filebot/ui/analyze/SplitTool.java +++ b/source/net/sourceforge/filebot/ui/analyze/SplitTool.java @@ -35,7 +35,7 @@ public class SplitTool extends Tool implements ChangeListener { public SplitTool() { - super("Split"); + super("Discs"); JScrollPane treeScrollPane = new JScrollPane(tree); treeScrollPane.setBorder(new SeparatorBorder(2, new Color(0, 0, 0, 90), GradientStyle.TOP_TO_BOTTOM, SeparatorBorder.Position.BOTTOM)); @@ -57,11 +57,12 @@ public class SplitTool extends Tool implements ChangeListener { spinnerModel.addChangeListener(this); } - + private long getSplitSize() { return spinnerModel.getNumber().intValue() * FileUtilities.MEGA; } + private FolderNode sourceModel = null; @@ -77,7 +78,7 @@ public class SplitTool extends Tool implements ChangeListener { } } - + @Override protected TreeModel createModelInBackground(FolderNode sourceModel) throws InterruptedException { this.sourceModel = sourceModel; @@ -131,7 +132,7 @@ public class SplitTool extends Tool implements ChangeListener { return new DefaultTreeModel(root); } - + @Override protected void setModel(TreeModel model) { tree.setModel(model); diff --git a/website/base.css b/website/base.css index b3485dbc..a3ffbb4c 100644 --- a/website/base.css +++ b/website/base.css @@ -324,7 +324,7 @@ div.screencast:hover .play { border: thin lightgray dotted; background: GhostWhite; padding: 8px; - margin: 25px 10px 35px 10px; + margin: 25px 10px 45px 10px; } .metrics { diff --git a/website/cli.html b/website/cli.html index 4f66d8d5..0412ac01 100644 --- a/website/cli.html +++ b/website/cli.html @@ -73,7 +73,7 @@

About

- FileBot can be called with set of command-line arguments directly from the console + FileBot can be called with a set of command-line arguments directly from the console or in scripts for automation running tasks like renaming tv shows and movies, fetching subtitles or checking sfv files.

@@ -217,7 +217,7 @@ Checksum mode: sfv, md5, sha1 or filename - Subtitle mode: srt (re-encode subtitles in SubRip format) + Subtitle mode: srt (re-encode subtitles)