Implement macOS local MP3 discovery foundation

This commit is contained in:
diyaa
2026-05-25 09:11:00 +02:00
parent 4b8701e55b
commit 6d426f2a54
6507 changed files with 325 additions and 12656 deletions
@@ -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
}
}