Pull to reload, Umplatzierung Search-Button, Album-Artist

This commit is contained in:
2026-04-06 14:59:32 +02:00
parent 56199db301
commit 040917479e
9 changed files with 247 additions and 187 deletions
@@ -246,6 +246,20 @@ final class MAService {
)
}
/// Get album artists (with pagination) only artists that appear as primary album artists
func getAlbumArtists(limit: Int = 50, offset: Int = 0) async throws -> [MAArtist] {
logger.debug("Fetching album artists (limit: \(limit), offset: \(offset))")
return try await webSocketClient.sendCommand(
"music/artists/library_items",
args: [
"limit": limit,
"offset": offset,
"album_artists_only": true
],
resultType: [MAArtist].self
)
}
/// Get albums (with pagination)
func getAlbums(limit: Int = 50, offset: Int = 0) async throws -> [MAAlbum] {
logger.debug("Fetching albums (limit: \(limit), offset: \(offset))")