From ce1cc8c004f37f5f258f77b782878dff585493c9 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 8 Aug 2016 18:35:53 +0800 Subject: [PATCH] Implement advanced multi-part movie detection (via group by mediainfo) --- source/net/filebot/media/MediaDetection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/media/MediaDetection.java b/source/net/filebot/media/MediaDetection.java index 61fd1b5e..77f9de27 100644 --- a/source/net/filebot/media/MediaDetection.java +++ b/source/net/filebot/media/MediaDetection.java @@ -1098,7 +1098,7 @@ public class MediaDetection { } filesByMediaFolder.stream().collect(groupingBy(f -> { - if (VIDEO_FILES.accept(f)) { + if (VIDEO_FILES.accept(f) && f.length() > 0) { try (MediaInfo mi = new MediaInfo().open(f)) { String v = mi.get(StreamKind.Video, 0, "Codec"); String a = mi.get(StreamKind.Audio, 0, "Codec");