foo-webview-sdk
    Preparing search index...

    Interface LibraryGetByPathSuccess

    Successful response from library.getByPath.

    interface LibraryGetByPathSuccess {
        absolutePath?: string;
        album?: string;
        artist?: string;
        artists?: string[];
        date?: string;
        duration?: number;
        found: boolean;
        genre?: string;
        path: string;
        success: true;
        title?: string;
        trackNumber?: string;
    }
    Index
    absolutePath?: string

    The track path as a native file path.

    album?: string

    The first album value; empty when absent.

    artist?: string

    Every artist value joined with , in their original order.

    artists?: string[]

    Every artist value; artists.join(', ') equals artist.

    date?: string

    The first date value; empty when absent.

    duration?: number

    Length in seconds.

    found: boolean

    Whether the file is in the library; the other fields besides path are present only when it is.

    genre?: string

    Every genre value joined with , .

    path: string

    The track path as foobar2000 stores it when found; otherwise the path as given.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    title?: string

    The first title value; empty when absent.

    trackNumber?: string

    The first tracknumber value as written in the tag, such as 2 or 02/12; empty when absent.