From d314efb4508383c410a5ff855d09697e8bd0e450 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 19 Jan 2018 10:44:18 +0100 Subject: [PATCH] Use FastFile internally but do not expose to outside code that expects File objects @see https://www.filebot.net/forums/viewtopic.php?f=8&t=5306 --- source/net/filebot/media/AutoDetection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }