SongGuess
    Preparing search index...

    Function getFirstSong

    • Returns the first Song from a given results list returned by the iTunes Search API.

      Parameters

      • results: ResultMusicTrack[]

        the list of ResultMusicTrack to find and convert the first song

      Returns
          | {
              artist: string;
              audioURL: string;
              cover: string
              | null;
              hrefURL: string;
              name: string;
          }
          | null

      a song with replaced bigger cover

      • {
            artist: string;
            audioURL: string;
            cover: string | null;
            hrefURL: string;
            name: string;
        }
        • artist: string

          The name of the song artist.

        • audioURL: string

          A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

        • cover: string | null

          Cover URL of the song.

        • hrefURL: string

          The URL users will be redirected to when clicking.

        • name: string

          The name of the song.

      • null