Members
-
name :string
-
Description
The name of the episode
Details
-
<readonly> episodeId :number
-
Description
The unique id of the episode (define the order between episodes)
Details
-
posterLink :string
-
Description
The uri of the episode poster
Details
-
links :Array.<string>
-
Description
The episode's stream links
Details
-
<readonly> localLink :string
-
Description
The local path to episode's file.
To setEpisode.localLink, see :Episode.setLocalPathDetails
-
<readonly> anime :Anime
-
Description
Reference to the
AnimeDetails
-
isLocal :boolean
-
Description
True when $
localLinkis setDetails
-
hasPoster :boolean
-
Description
True when $
posterLinkis setDetails
-
path :string
-
Description
path.join($
this.anime.pathwith :If there is no local file, use the default local path $
this.episodeId)` Else use the $local pathDetails
Methods
-
toPublic() → {PublicEpisode}
-
Description
Return the public information of the episode (= the informations to give to the client)
Returns
Details
-
<async> getInfo( loadYoutubeInfo ) → {Promise.<EpisodeInfo>}
-
Description
Get the info of an episode
Parameters
Name Type Default Description loadYoutubeInfobool true Decide or not to call
YoutubePlayer.getInfoReturns
Details
-
getUrlByPlayer( player ) → {string}
-
Description
Get the first url corresponding to the
VideoplayerParameters
Name Type Description playerVideoPlayer Returns
Details
-
setLocalPath( path ) → {Promise.<void>}
-
Description
Set
Episode.localLinkand update the animeParameters
Name Type Description pathstring Returns
Details
-
toEpisodeConfig() → {EpisodeConfig}
-
Description
Return the
EpisodeConfigof the EpisodeReturns
Details