diff --git a/common/src/main/java/ctbrec/Recording.java b/common/src/main/java/ctbrec/Recording.java index 12559935..b95a10a3 100644 --- a/common/src/main/java/ctbrec/Recording.java +++ b/common/src/main/java/ctbrec/Recording.java @@ -220,7 +220,7 @@ public class Recording implements Serializable { int result = 1; result = prime * result + ((getStartDate() == null) ? 0 : (int) (getStartDate().toEpochMilli() ^ (getStartDate().toEpochMilli() >>> 32))); result = prime * result + ((model == null) ? 0 : model.hashCode()); - result = prime * result + ((path == null) ? 0 : path.hashCode()); + result = prime * result + ((getAbsoluteFile() == null) ? 0 : getAbsoluteFile().hashCode()); return result; } @@ -241,11 +241,7 @@ public class Recording implements Serializable { } else if (!getModel().equals(other.getModel())) { return false; } - if (path == null) { - if (other.path != null) { - return false; - } - } else if (!path.equals(other.path)) { + if (!getAbsoluteFile().equals(other.getAbsoluteFile())) { return false; } if (getStartDate() == null) {