Class representing an anime, including its details and statistics.

Constructors

Properties

_description: string = undefined
_details: AnimeDetails = undefined
_episodes: Episode[] = undefined
_fetcher: Fetcher
_imageURL: URL = undefined
_loginRequiredStatus: boolean = undefined
_rating: number = undefined
_stats: AnimeStats = undefined
_title: string = undefined
_urlToEpisodes: URL
_urlToSeries: URL

Accessors

  • get isLoginRequired(): boolean
  • Gets the login required status for the anime.

    Returns boolean

    True if login is required, false otherwise.

  • get urlToEpisodes(): URL
  • Gets the URL to the anime episodes.

    Returns URL

    The URL to the anime episodes.

  • get urlToSeries(): URL
  • Gets the URL to the anime series.

    Returns URL

    The URL to the anime series.

Methods

  • Checks if the anime is available.

    Returns Promise<void>

    Throws

    Will throw an error if the anime is not available.

  • Checks the validity of the provided URL.

    Parameters

    • Optional url: URL

      The URL to check.

    Returns Promise<void>

    Throws

    Will throw an error if the URL is invalid.

  • Gets the description of the anime.

    Returns Promise<string>

    The description of the anime.

  • Gets the image URL of the anime.

    Returns Promise<URL>

    The image URL of the anime.

  • Gets the rating of the anime.

    Returns Promise<number>

    The rating of the anime.

  • Gets the title of the anime.

    Returns Promise<string>

    The title of the anime.

  • Parses the episodes page of the anime to extract episodes details.

    Returns Promise<void>

  • Parses the main page of the anime to extract details.

    Returns Promise<void>

    Throws

    Will throw an error if required data is missing.