MangaEx.MangaProviders.ProvidersBehaviour behaviour (manga_ex v0.4.5)

Link to this section Summary

Link to this section Callbacks

Link to this callback

download_pages(pages_url, manga_name, chapter)

Specs

download_pages(
  pages_url :: [String.t()],
  manga_name :: String.t(),
  chapter :: String.t() | integer()
) :: list()
Link to this callback

find_mangas(arg1, pos_integer)

Specs

find_mangas(String.t(), pos_integer()) ::
  [{manga_name :: String.t(), manga_url :: String.t()}]
  | {:error, :client_error | :server_error}
  | {:ok, :manga_not_found}
Link to this callback

get_chapters(arg1, pos_integer)

Specs

get_chapters(String.t(), pos_integer()) ::
  :ok
  | {:error, :manga_not_found}
  | %{chapters: [integer()], special_chapters: [String.t()]}
Link to this callback

get_pages(chapter_url, manga_name, pos_integer)

Specs

get_pages(chapter_url :: String.t(), manga_name :: String.t(), pos_integer()) ::
  [String.t()] | {:error, :client_error | :server_error}