Constructors

  • Creates an instance of Episode.

    Parameters

    • title: string

      The title of the episode.

    • emissionDate: string

      The emission date of the episode.

    • languages: string[]

      The languages available for the episode.

    • playersURL: URL

      The URL to the players page.

    • fetcher: Fetcher

      The fetcher instance used for retrieving page data.

    Returns Episode

Properties

_emissionDate: string
_fetcher: Fetcher
_languages: string[]
_players: Player[]
_playersURL: URL
_title: string

Accessors

  • get emissionDate(): string
  • Gets the emission date of the episode.

    Returns string

    The emission date of the episode.

  • get languages(): string[]
  • Gets the languages available for the episode.

    Returns string[]

    The languages available for the episode.

  • get playersURL(): URL
  • Gets the URL to the players page.

    Returns URL

    The URL to the players page.

  • get title(): string
  • Gets the title of the episode.

    Returns string

    The title of the episode.

Methods

  • Returns the list of players for the episode.

    Returns Promise<Player[]>

    A promise that resolves to an array of Player objects.

  • Parses the players page to extract player information.

    Returns Promise<void>