diff --git a/source/net/filebot/media/AutoDetection.java b/source/net/filebot/media/AutoDetection.java index 2009cdd1..cd929bd2 100644 --- a/source/net/filebot/media/AutoDetection.java +++ b/source/net/filebot/media/AutoDetection.java @@ -149,7 +149,7 @@ public class AutoDetection { try { stream(files).collect(toMap(f -> f, f -> workerThreadPool.submit(() -> detectGroup(f)))).forEach((file, group) -> { try { - groups.computeIfAbsent(group.get(), k -> new TreeSet()).add(file); + groups.computeIfAbsent(group.get(), k -> new TreeSet()).add(new File(file.getPath())); // use FastFile internally but do not expose to outside code that expects File objects } catch (Exception e) { debug.log(Level.SEVERE, e.getMessage(), e); }