searchMAL

Create a new searcher using a MAL id

Return

A searcher using the MAL id

Parameters

id

MAL id


suspend fun searchMAL(title: String, type: AnimeType = AnimeType.ANY, search: (results: List<AnimeResult>) -> AnimeResult = { it.first() }): MALSearcher

Create a new searcher using the title

Return

A searcher using the anime title

Parameters

title

The anime title for search

type

Optional anime type, by default AnimeType.ANY

search

Optional function to select a result from the list, by default the first result is selected

Throws

AnimeNotFoundException

if the search returns empty