This commit is contained in:
Reinhard Pointner 2016-03-12 10:38:07 +00:00
parent 0562f6bdfd
commit e8c05b86fc
4 changed files with 6 additions and 5 deletions

View File

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

View File

@ -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);
}

View 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();
}

View File

@ -74,6 +74,8 @@ class MediaInfoTool extends Tool<TableModel> {
});
});
});
} catch (IllegalArgumentException e) {
debug.finest(e.getMessage());
} catch (Exception e) {
debug.warning(e.getMessage());
}