Downloader¶
-
class
xdm.plugins.bases.
Downloader
(instance='Default')¶ These plugins of this class send Downloads to another Programs or directly download stuff.
-
addDownload
(download)¶ Add/download a Download to this downloader
Arguments: download – an Download object
return: bool if the adding was successful >>>> False
-
getConfigHtml
()¶ The return value of this function is simply injected in the config panel
default is a html comment: <!– nothing here –> you can use this to add dynamic javascript and/or add additional html
Note
The container this is added in is hidden with inline css. to make use of the html use javascript
-
getDownloadPercentage
(element)¶ “this should return a int betwen 0 and 100 as the percentage
-
getElementStaus
(element)¶ Get the staus of element that it has in this downloader
Arguments: element – an Element object
return: tuple of Status, Download and a path (str) >>>> (common.UNKNOWN, Download(), ‘’)
-