Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function isLookupCoverRef

    • Whether ref is a well-formed cover id for source: a MusicBrainz release group's MBID (the Cover Art Archive's release-group/<mbid>/front), or an Open Library cover id (covers.openlibrary.org/b/id/<id>). The server builds the URL from this and nothing else, so a ref that passes cannot point a request anywhere but the source's own cover service.

      Parameters

      • source: "musicbrainz" | "openlibrary"
      • ref: string

      Returns boolean