SongGuess
    Preparing search index...

    Function performSearch

    • 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

      Parameters

      • query: string

        the query to search for

      • onlySongs: boolean

        whether to only search for songs

      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