Cleanup
This commit is contained in:
parent
0562f6bdfd
commit
e8c05b86fc
|
@ -13,14 +13,13 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import net.filebot.util.JsonUtilities;
|
||||
import net.filebot.web.WebRequest;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
public class CachedResource<K, R> implements Resource<R> {
|
||||
|
||||
public static final int DEFAULT_RETRY_LIMIT = 2;
|
||||
|
|
|
@ -27,7 +27,7 @@ public class MediaInfo implements Closeable {
|
|||
}
|
||||
}
|
||||
|
||||
public synchronized MediaInfo open(File file) throws IOException {
|
||||
public synchronized MediaInfo open(File file) throws IOException, IllegalArgumentException {
|
||||
if (!file.isFile() || file.length() < 64 * 1024) {
|
||||
throw new IllegalArgumentException("Invalid media file: " + file);
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ public class SelectDialog<T> extends JDialog {
|
|||
html.append("• ").append(escapeHTML(n)).append("<br>");
|
||||
}
|
||||
}
|
||||
html.append("<br>ID: <br>• <code>").append(escapeHTML(Integer.toString(item.getId()))).append("</code></html>");
|
||||
html.append("<br>ID: <br>• ").append(Integer.toString(item.getId())).append("</html>");
|
||||
return html.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -74,6 +74,8 @@ class MediaInfoTool extends Tool<TableModel> {
|
|||
});
|
||||
});
|
||||
});
|
||||
} catch (IllegalArgumentException e) {
|
||||
debug.finest(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
debug.warning(e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue