foo-webview-sdk
    Preparing search index...

    Interface PlaylistGetMatchingRowsParams

    Parameters for playlist.getMatchingRows. The rows of a playlist whose tracks match a foobar2000 query, in playlist order, in one call however long the playlist is; read the rows themselves with playlist.getTracksAt. The query takes the Media Library search syntax without SORT BY. A query the parser rejects fails with INVALID_PARAMS and details.param query, and so does one carrying SORT BY; many malformed queries are not rejected but simply match nothing. An index past the last playlist fails with INVALID_INDEX, a playlistGuid no playlist has with NOT_FOUND, and with both omitted and no active playlist the call fails with NO_ACTIVE_ITEM. The answer is a snapshot taken on the main thread: editing the playlist or a track's tags can change it, and so can the passing of time for a query such as %added% DURING LAST 2 WEEKS, which no event announces.

    interface PlaylistGetMatchingRowsParams {
        playlist?: number;
        playlistGuid?: string;
        query: string;
    }
    Index
    playlist?: number

    Playlist index; omitted, the active playlist.

    playlistGuid?: string

    Persistent unique identifier of a playlist (bracketed GUID, case-insensitive), used in place of a mutable index. Mutually exclusive with playlist; passing both or an invalid format fails with INVALID_PARAMS. Fails with NOT_FOUND if the playlist does not exist, never falling back. Invalid-format and not-found failures return the given GUID in details.playlistGuid.

    query: string

    foobar2000 query, as in the Media Library search; SORT BY is refused.