|
|
__init__(self,
download,
status,
error,
progress,
stats=None,
filepieceranges=None,
logmsgs=None,
coopdl_helpers=[],
coopdl_coordinator=None,
peerid=None,
videoinfo=None)
Internal constructor. |
|
|
|
|
get_peerid(self)
Returns our own peer id in this swarm, or None if unknown. |
|
|
|
|
get_videoinfo(self)
Returns information about the video being streamed, or {} if unknown. |
|
|
|
|
get_download(self)
Returns the Download object of which this is the state |
|
|
|
|
get_progress(self)
The general progress of the Download as a percentage. |
|
|
|
|
get_status(self)
Returns the status of the torrent. |
|
|
|
|
get_error(self)
Returns the Exception that caused the download to be moved to
DLSTATUS_STOPPED_ON_ERROR status. |
|
|
|
|
|
|
|
get_eta(self)
Returns the estimated time to finish of download. |
|
|
|
|
get_num_peers(self)
Returns the download's number of active connections. |
|
|
|
|
|
|
|
get_pieces_complete(self)
Returns a list of booleans indicating whether we have completely
received that piece of the content. |
|
|
|
|
|
|
|
is_vod(self)
Returns if this download is currently in vod mode |
|
|
|
|
get_vod_playable(self)
Returns whether or not the Download started in Video-On-Demand
mode has sufficient prebuffer and download speed to be played out
to the user. |
|
|
|
|
get_vod_playable_after(self)
Returns the estimated time until the Download started in Video-On-Demand
mode can be started to play out to the user. |
|
|
|
|
get_vod_stats(self)
Returns a dictionary of collected VOD statistics. |
|
|
|
|
|
|
|
get_peerlist(self)
Returns a list of dictionaries, one for each connected peer
containing the statistics for that peer. |
|
|
|
|
|
|
|
|