Parameters
- query: string
- onlySongs: boolean
Returns Promise<
{
cover: string
| null;
hrefURL: string;
name: string;
songs: {
artist: string;
audioURL: string;
cover: string | null;
hrefURL: string;
name: string;
}[];
subtitle?: string;
}[],
>
an array of Apple Music playlists interleaved with SoundCloud tracks, starting with an Apple Music playlist
Searches Apple Music and SoundCloud for a given query. Only calls each API once; filling in songs for Artist/Album required e.g. with getPlaylistByURL