UNPKG

@jjdenhertog/plex-music-search

Version:

Library to find tracks in your Plex Library

67 lines (66 loc) 1.4 kB
export declare function searchForAlbum(uri: string, token: string, artist: string, album: string, artistMatch?: { contain: boolean; similarity: number; }): Promise<({ matching: { album: { match: boolean; contains: boolean; similarity: number; }; artist: { match: boolean; contains: boolean; similarity: number; }; }; id: string; type: "album"; ratingKey: string; guid: string; score: number; image: string; year: number; title: string; artist: { guid: string; id: string; title: string; alternative_title: string; image: string; }; } | { matching: { album: { match: boolean; contains: boolean; similarity: number; }; artist: { match: boolean; contains: boolean; similarity: number; }; }; type: "track"; id: string; ratingKey: string; guid: string; score: number; image: string; title: string; src?: string; album: { guid: string; id: string; title: string; year: number; image: string; }; artist: { guid: string; id: string; title: string; image: string; }; })[]>;