1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Persephone/MPDClient/Models/MPDAlbum.swift
Daniel Barber 59d09f70fe
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.
2020-02-13 10:35:15 -05:00

24 lines
445 B
Swift

//
// Album.swift
// Persephone
//
// Created by Daniel Barber on 2019/2/09.
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Foundation
extension MPDClient {
struct MPDAlbum: Equatable {
let title: String
let artist: String
var date: String?
var path: String?
static func == (lhs: MPDAlbum, rhs: MPDAlbum) -> Bool {
return lhs.title == rhs.title &&
lhs.artist == rhs.artist
}
}
}