From 59d09f70fe7f0e11daed278e4c74ef48be2d0bd1 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Thu, 13 Feb 2020 10:35:15 -0500 Subject: [PATCH] Fix bug showing duplicate albums Albums with tracks tagged with different years were showing one instance of the album for each year present in the tracks. This should fix that. --- Persephone/MPDClient/Models/MPDAlbum.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Persephone/MPDClient/Models/MPDAlbum.swift b/Persephone/MPDClient/Models/MPDAlbum.swift index 1b72563..a146710 100644 --- a/Persephone/MPDClient/Models/MPDAlbum.swift +++ b/Persephone/MPDClient/Models/MPDAlbum.swift @@ -17,8 +17,7 @@ extension MPDClient { static func == (lhs: MPDAlbum, rhs: MPDAlbum) -> Bool { return lhs.title == rhs.title && - lhs.artist == rhs.artist && - lhs.date == rhs.date + lhs.artist == rhs.artist } } }