SongGuess
    Preparing search index...

    Function safeLookup

    • Safely looks up an entry using the iTunes Store API. Also handles potential caching issues.

      Type Parameters

      • M extends Media
      • E extends
            | "song"
            | "audiobook"
            | "ebook"
            | "movie"
            | "musicVideo"
            | "podcast"
            | "shortFilm"
            | "software"
            | "audiobookAuthor"
            | "movieArtist"
            | "album"
            | "mix"
            | "musicArtist"
            | "musicTrack"
            | "podcastAuthor"
            | "shortFilmArtist"
            | "iPadSoftware"
            | "macSoftware"
            | "tvSoftware"
            | "tvEpisode"
            | "tvSeason"
            | "allArtist"
            | "allTrack"

      Parameters

      • type: Lookup
      • value: number
      • Optionaloptions: Partial<Options<M, E>>

      Returns Promise<(E extends undefined ? Results[Entities[M]] : Results[E])[]>

      Promise resolving to an array of results.

      lookup

    • Safely looks up an entry using the iTunes Store API. Also handles potential caching issues.

      Type Parameters

      • M extends Media
      • E extends
            | "song"
            | "audiobook"
            | "ebook"
            | "movie"
            | "musicVideo"
            | "podcast"
            | "shortFilm"
            | "software"
            | "audiobookAuthor"
            | "movieArtist"
            | "album"
            | "mix"
            | "musicArtist"
            | "musicTrack"
            | "podcastAuthor"
            | "shortFilmArtist"
            | "iPadSoftware"
            | "macSoftware"
            | "tvSoftware"
            | "tvEpisode"
            | "tvSeason"
            | "allArtist"
            | "allTrack"

      Parameters

      • type: "url"
      • value: string
      • Optionaloptions: Partial<Options<M, E>>

      Returns Promise<(E extends undefined ? Results[Entities[M]] : Results[E])[]>

      Promise resolving to an array of results.

      lookup