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

Link to this section Summary

Link to this section Callbacks

Link to this callback

download_pages(pages_url, manga_name, chapter, sleep)

Specs

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

find_mangas(arg1)

Specs

find_mangas(String.t()) ::
  [{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(), integer()}] | {:error, :client_error | :server_error}