Implement advanced multi-part movie detection (via group by mediainfo)

This commit is contained in:
Reinhard Pointner 2016-08-08 18:35:53 +08:00
parent 1f6f184e8d
commit ce1cc8c004
1 changed files with 1 additions and 1 deletions

View File

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