quick fixes

This commit is contained in:
Dallas Groot 2026-04-11 00:59:53 -07:00
parent f761f65e87
commit d37dc8fb44
4 changed files with 6 additions and 2 deletions

View file

@ -325,7 +325,7 @@ struct RadioView: View {
let radioSong = Song(
id: station.id, parent: nil, isDir: nil,
title: station.name, album: "Radio",
artist: station.homePageUrl ?? "Internet Radio",
artist: station.homePageUrl ?? "Internet Radio", albumArtist: nil,
track: nil, year: nil, genre: nil, coverArt: nil,
size: nil, contentType: nil, suffix: nil,
transcodedContentType: nil, transcodedSuffix: nil,

View file

@ -1162,6 +1162,7 @@ struct NowPlayingView: View {
let updated = Song(
id: song.id, parent: song.parent, isDir: song.isDir,
title: song.title, album: song.album, artist: song.artist,
albumArtist: song.albumArtist,
track: song.track, year: song.year, genre: song.genre,
coverArt: song.coverArt, size: song.size,
contentType: song.contentType, suffix: song.suffix,
@ -1538,7 +1539,7 @@ struct RadioRecordingsView: View {
let song = Song(
id: rec.id.uuidString, parent: nil, isDir: nil,
title: rec.name, album: "Recording",
artist: stationName,
artist: stationName, albumArtist: nil,
track: nil, year: nil, genre: nil, coverArt: nil,
size: nil, contentType: nil, suffix: nil,
transcodedContentType: nil, transcodedSuffix: nil,

View file

@ -72,6 +72,7 @@ class WatchOfflineStore: NSObject, ObservableObject, URLSessionDownloadDelegate
title: title ?? old.song.title,
album: album ?? old.song.album,
artist: artist ?? old.song.artist,
albumArtist: albumArtist ?? old.song.albumArtist,
track: old.song.track, year: old.song.year, genre: old.song.genre,
coverArt: old.song.coverArt,
size: old.song.size, contentType: old.song.contentType,

View file

@ -288,6 +288,7 @@ class WatchSessionManager: NSObject, ObservableObject {
title: message["title"] as? String ?? "Unknown",
album: message["album"] as? String,
artist: message["artist"] as? String,
albumArtist: message["albumArtist"] as? String,
track: nil, year: nil, genre: nil,
coverArt: message["coverArt"] as? String,
size: nil, contentType: nil,
@ -513,6 +514,7 @@ extension WatchSessionManager: WCSessionDelegate {
title: metadata["title"] as? String ?? "Unknown",
album: metadata["album"] as? String,
artist: metadata["artist"] as? String,
albumArtist: metadata["albumArtist"] as? String,
track: nil, year: nil, genre: nil,
coverArt: coverArtId,
size: nil, contentType: nil,