Pull to reload, Umplatzierung Search-Button, Album-Artist
This commit is contained in:
@@ -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))")
|
||||
|
||||
Reference in New Issue
Block a user