foo-webview-sdk
    Preparing search index...

    Interface LibraryAddToPlaylistParams

    Parameters for library.addToPlaylist. Append tracks to a playlist by path. A path does not have to be in the library, and a file that does not exist is added all the same. A locked playlist fails with LOCKED and nothing is added.

    interface LibraryAddToPlaylistParams {
        paths: string[];
        playlist?: number;
        playlistGuid?: string;
    }
    Index
    paths: string[]

    Paths to add, in this order; a |subsong:N suffix selects a subsong.

    playlist?: number

    Index of the target playlist; omitted, the active playlist. An index past the last playlist fails with INVALID_INDEX; with this omitted and no active playlist the call fails with NO_ACTIVE_ITEM.

    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.