* 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() } List.metaClass.getFolders = { c -> findResults{ it.getFolders(c) }.flatten().unique() }
String.metaClass.eachMediaFolder = { c -> new File(delegate).eachMediaFolder(c) } String.metaClass.eachMediaFolder = { c -> new File(delegate).eachMediaFolder(c) }
File.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().findAll{ it.hasFile{ it.isVideo() } }.each(c) } List.metaClass.eachMediaFolder = { c -> getFolders{ it.hasFile{ it.isVideo() } }.each(c) }
// File utility methods // File utility methods

View File

@ -35,7 +35,7 @@ public class SplitTool extends Tool<TreeModel> implements ChangeListener {
public SplitTool() { public SplitTool() {
super("Split"); super("Discs");
JScrollPane treeScrollPane = new JScrollPane(tree); JScrollPane treeScrollPane = new JScrollPane(tree);
treeScrollPane.setBorder(new SeparatorBorder(2, new Color(0, 0, 0, 90), GradientStyle.TOP_TO_BOTTOM, SeparatorBorder.Position.BOTTOM)); 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); spinnerModel.addChangeListener(this);
} }
private long getSplitSize() { private long getSplitSize() {
return spinnerModel.getNumber().intValue() * FileUtilities.MEGA; return spinnerModel.getNumber().intValue() * FileUtilities.MEGA;
} }
private FolderNode sourceModel = null; private FolderNode sourceModel = null;
@ -77,7 +78,7 @@ public class SplitTool extends Tool<TreeModel> implements ChangeListener {
} }
} }
@Override @Override
protected TreeModel createModelInBackground(FolderNode sourceModel) throws InterruptedException { protected TreeModel createModelInBackground(FolderNode sourceModel) throws InterruptedException {
this.sourceModel = sourceModel; this.sourceModel = sourceModel;
@ -131,7 +132,7 @@ public class SplitTool extends Tool<TreeModel> implements ChangeListener {
return new DefaultTreeModel(root); return new DefaultTreeModel(root);
} }
@Override @Override
protected void setModel(TreeModel model) { protected void setModel(TreeModel model) {
tree.setModel(model); tree.setModel(model);

View File

@ -324,7 +324,7 @@ div.screencast:hover .play {
border: thin lightgray dotted; border: thin lightgray dotted;
background: GhostWhite; background: GhostWhite;
padding: 8px; padding: 8px;
margin: 25px 10px 35px 10px; margin: 25px 10px 45px 10px;
} }
.metrics { .metrics {

View File

@ -73,7 +73,7 @@
<div class="section about"> <div class="section about">
<h2>About</h2> <h2>About</h2>
<p> <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 or in scripts for automation running tasks like renaming
tv shows and movies, fetching subtitles or checking sfv files. tv shows and movies, fetching subtitles or checking sfv files.
</p> </p>
@ -217,7 +217,7 @@
<td>Checksum mode: sfv, md5, sha1 or filename</td> <td>Checksum mode: sfv, md5, sha1 or filename</td>
</tr> </tr>
<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> </tr>
</table> </table>
</td> </td>