* misc clean up

This commit is contained in:
Reinhard Pointner 2011-12-07 05:41:44 +00:00
parent c2f7def29b
commit 703e7024c2
4 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -35,7 +35,7 @@ public class SplitTool extends Tool<TreeModel> 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<TreeModel> 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<TreeModel> implements ChangeListener {
}
}
@Override
protected TreeModel createModelInBackground(FolderNode sourceModel) throws InterruptedException {
this.sourceModel = sourceModel;
@ -131,7 +132,7 @@ public class SplitTool extends Tool<TreeModel> implements ChangeListener {
return new DefaultTreeModel(root);
}
@Override
protected void setModel(TreeModel model) {
tree.setModel(model);

View File

@ -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 {

View File

@ -73,7 +73,7 @@
<div class="section about">
<h2>About</h2>
<p>
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.
</p>
@ -217,7 +217,7 @@
<td>Checksum mode: sfv, md5, sha1 or filename</td>
</tr>
<tr>
<td>Subtitle mode: srt <small class="comment">(re-encode subtitles in SubRip format)</small></td>
<td>Subtitle mode: srt <small class="comment">(re-encode subtitles)</small></td>
</tr>
</table>
</td>