Only include an image in the fingerprint if it has been inserted.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:34:46 +0000 (07:34 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:34:46 +0000 (07:34 +0200)
src/main/java/net/pterodactylus/sone/data/Album.java

index d7df845..ac7e11d 100644 (file)
@@ -298,7 +298,9 @@ public class Album implements Fingerprintable {
                /* add images. */
                fingerprint.append("Images(");
                for (Image image : images) {
-                       fingerprint.append(image.getFingerprint());
+                       if (image.isInserted()) {
+                               fingerprint.append(image.getFingerprint());
+                       }
                }
                fingerprint.append(')');