From 9ed7bbc5033cc2579ceb312d050db1a551b1c62e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 11 Nov 2017 00:12:18 +0100 Subject: [PATCH] Use CodecID when grouping multi-part movie parts --- source/net/filebot/media/MediaDetection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/media/MediaDetection.java b/source/net/filebot/media/MediaDetection.java index e6c67156..3adc35ad 100644 --- a/source/net/filebot/media/MediaDetection.java +++ b/source/net/filebot/media/MediaDetection.java @@ -1119,8 +1119,8 @@ public class MediaDetection { if (VIDEO_FILES.accept(f) && f.length() > ONE_MEGABYTE) { try (MediaInfo mi = new MediaInfo().open(f)) { Object d = Duration.ofMillis(Long.parseLong(mi.get(StreamKind.General, 0, "Duration"))).toMinutes() < 10 ? ChronoUnit.MINUTES : ChronoUnit.HOURS; - String v = mi.get(StreamKind.Video, 0, "Codec"); - String a = mi.get(StreamKind.Audio, 0, "Codec"); + String v = mi.get(StreamKind.Video, 0, "CodecID"); + String a = mi.get(StreamKind.Audio, 0, "CodecID"); String w = mi.get(StreamKind.Video, 0, "Width"); String h = mi.get(StreamKind.Video, 0, "Height"); return asList(d, v, a, w, h);