OptionalcoverLargest cover to inline, in KiB; a larger cover is left out. 0 or less inlines any size.
OptionalincludeAdd each album's front cover as coverDataUrl, read from its first track.
OptionalincludeAdd each album's tracks as tracks.
OptionallimitMost albums to return.
OptionaloffsetAlbums to skip.
OptionalqueryKeep only albums whose name or artist contains this text, compared case-insensitively for ASCII letters; empty keeps every album.
Optionalsortname, artist (the album artist), year or trackCount; any other value sorts by name.
OptionaluseAnswer from the kept list when there is one; false always scans the library, and the result is still kept.
Parameters for
library.getAlbums. Albums of the whole library, grouped by album name plus album artist; tracks without analbumtag are skipped. A complete list (offset0, noincludeTracks, every album withinlimit) is kept until the library changes, and a later call with the samequery,sortandincludeCoverfromoffset0 withoutincludeTracksis answered from it. The grouping behind the list is kept the same way and shared withlibrary.getAlbumTracks, so other calls do not read the library again either until it changes. With the library disabled it succeeds with no albums.