foo-webview-sdk
    Preparing search index...

    Interface AlbumInfo

    One album row, as library.getAlbums and library.getArtistAlbums return it; the row of library.getAlbumTracks has the same shape.

    interface AlbumInfo {
        albumArtist: string;
        albumId?: string;
        artist: string;
        coverDataUrl?: string;
        discCount: number;
        duration: number;
        firstTrackAbsolutePath?: string;
        firstTrackPath: string;
        genre: string;
        label: string;
        name: string;
        trackCount: number;
        tracks?: AlbumTrackRef[];
        year: string;
    }
    Index
    albumArtist: string

    The first album artist value found among the tracks, falling back to the track's artist; empty when neither exists.

    albumId?: string

    Opaque identity for an album whose original name or album artist is not valid UTF-8. Pass it to library.getAlbumTracks; display text alone cannot identify such an album. Absent for ordinary names and for the differently grouped library.getArtistAlbums rows.

    artist: string

    albumArtist when it is set, otherwise the first artist value found among the tracks.

    coverDataUrl?: string

    Front cover as a data:image/... URL; only library.getAlbums with includeCover fills it, and only when a cover exists.

    discCount: number

    Distinct disc numbers among those tracks; 1 when none carries one.

    duration: number

    Summed length of those tracks, in seconds.

    firstTrackAbsolutePath?: string

    firstTrackPath as a native file path, the form to pass to artwork.getForTrack; absent when there is no first track path.

    firstTrackPath: string

    Path of the first track counted, as foobar2000 stores it; it can be a file-relative:// URI.

    genre: string

    The first genre value found among the tracks; empty when none has one.

    label: string

    The first publisher value found among the tracks, or else the first label value; empty when none has either.

    name: string

    Album name.

    trackCount: number

    Tracks counted into the row.

    tracks?: AlbumTrackRef[]

    Tracks in track-number order. library.getAlbums fills it with includeTracks; library.getArtistAlbums fills it with the tracks credited to the requested artist in this group. Use these references to keep groups with equal display names apart.

    year: string

    The first date value found among the tracks; empty when none has one.