Implement macOS local MP3 discovery foundation
This commit is contained in:
@@ -6,21 +6,30 @@ public enum DevicePlatform: String, Codable, Sendable, CaseIterable {
|
||||
}
|
||||
|
||||
public struct LibraryTrack: Identifiable, Codable, Hashable, Sendable {
|
||||
public let id: UUID
|
||||
public let id: String
|
||||
public var title: String
|
||||
public var artist: String
|
||||
public var album: String?
|
||||
public var durationSeconds: Double?
|
||||
public var localFilePath: String
|
||||
public var sha256: String?
|
||||
|
||||
public init(
|
||||
id: UUID = UUID(),
|
||||
id: String = UUID().uuidString,
|
||||
title: String,
|
||||
artist: String,
|
||||
album: String? = nil
|
||||
artist: String = "Unknown Artist",
|
||||
album: String? = nil,
|
||||
durationSeconds: Double? = nil,
|
||||
localFilePath: String = "",
|
||||
sha256: String? = nil
|
||||
) {
|
||||
self.id = id
|
||||
self.title = title
|
||||
self.artist = artist
|
||||
self.album = album
|
||||
self.durationSeconds = durationSeconds
|
||||
self.localFilePath = localFilePath
|
||||
self.sha256 = sha256
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user