Tankōbon / main/services/bedetheque / searchBedetheque
Function: searchBedetheque()
searchBedetheque(
query,http):Promise<MetadataCandidate[]>
Defined in: main/services/bedetheque.ts:436
Finds a book by series name and volume, in three sequential requests at most: the search box's JSON for the series, the series page for its album list, then the album's page for its credits. The requests are spaced out and what the site answered is remembered for a while (see resetBedethequeState), so repeated searches stay light on it. Returns that one album when the volume is found (or the series has a single album); otherwise the series' albums as candidates, with no credits yet (the album page is read when one is picked). Nothing is returned when no series matches, or the text is too short for the site's search box.
Parameters
query
http
Returns
Promise<MetadataCandidate[]>