Constructors

  • Creates an instance of Player.

    Parameters

    • online_id: string

      The online ID of the player.

    • player: string

      The player type.

    • username: string

      The username of the uploader.

    • user_id: string

      The user ID of the uploader.

    • lang_audio: string

      The language of the audio.

    • lang_subs: string

      The language of the subtitles.

    • max_res: string

      The maximum resolution.

    • subs_author: string

      The author of the subtitles.

    • added: string

      The date when the player was added.

    • source: string

      The source of the player.

    • fetcher: Fetcher

    Returns Player

Properties

_added: string
_externalPlayerURL: URL = undefined
_fetcher: Fetcher
_lang_audio: string
_lang_subs: string
_max_res: string
_online_id: string
_player: string
_source: string
_subs_author: string
_user_id: string
_username: string

Accessors

  • get added(): string
  • Gets the date when the player was added.

    Returns string

    The date when the player was added.

  • get lang_audio(): string
  • Gets the language of the audio.

    Returns string

    The language of the audio.

  • get lang_subs(): string
  • Gets the language of the subtitles.

    Returns string

    The language of the subtitles.

  • get max_res(): string
  • Gets the maximum resolution.

    Returns string

    The maximum resolution.

  • get online_id(): string
  • Gets the online ID.

    Returns string

    The online ID.

  • get player(): string
  • Gets the player type.

    Returns string

    The player type.

  • get source(): string
  • Gets the source of the player.

    Returns string

    The source of the player.

  • get subs_author(): string
  • Gets the author of the subtitles.

    Returns string

    The author of the subtitles.

  • get user_id(): string
  • Gets the user ID.

    Returns string

    The user ID.

  • get username(): string
  • Gets the username.

    Returns string

    The username.

Methods

  • Fetches the external player URL e.g. cda.pl or mega.nz.

    Returns Promise<URL>

    The external player URL.