mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-21 23:38:50 -05:00
Accept small files (useful for automated image processing)
This commit is contained in:
parent
52b8e31d53
commit
898065db31
@ -42,7 +42,7 @@ public class MediaInfo implements MediaCharacteristics {
|
||||
}
|
||||
|
||||
public synchronized MediaInfo open(File file) throws IOException, IllegalArgumentException {
|
||||
if (!file.isFile() || file.length() < BUFFER_SIZE) {
|
||||
if (!file.isFile() || file.length() <= 0) {
|
||||
throw new IllegalArgumentException("Invalid media file: " + file);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user