Members
-
<static, readonly> list :Array.<DownloadEpisode>
-
Details
-
<static> toDownload :Array.<ToDownloadItem>
-
Details
-
<protected, static> currentDownload :DownloadEpisode
-
Details
-
<readonly> episode :Episode
-
Description
The episode we want to download
Details
-
<readonly> id :number
-
Description
The unique id of the DownloadEpisode instance
Details
-
<private, readonly> player :VideoPlayer
-
Description
The player used to download the video (epsode)
Details
-
<private, readonly> isReady :boolean
-
Description
If the download is done and the json saved
Details
-
<readonly> isPending :boolean
-
Description
If the download is pending
Details
-
<readonly> isDownloading :boolean
-
Description
If the download is ongoing
Details
-
<readonly> isError :boolean
-
Description
If there is an error
Details
-
<readonly> error :string
-
Description
The error
Details
-
<readonly> progress :number
-
Description
The progress of the download
Details
Methods
-
<private> _setLocalPath( pathToFile )
-
Description
Call
Episode#setLocalPathand set itself ready when it's doneParameters
Name Type Description pathToFilestring Details
-
download( url, format )
-
Description
Launch the download
Parameters
Name Type Description urlstring formatobject Details
-
<private> _setEvents( emitter )
-
Description
Set the events of the emitter
Parameters
Name Type Description emitterevent.EventEmitter Details
-
destroy()
-
Description
Destroy the instance (Removes it from
DownloadEpisode.list.)Details
-
<static> getFromEpisode( episode )
-
Parameters
Name Type Description episodeEpisode Details