Indexer¶
-
class
xdm.plugins.bases.
Indexer
(instance='Default')¶ These plugins perform searches on sites that hold information of available files.
Plugins of this class create elemnts based on mediaType structures
-
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
-
getLatestRss
()¶ return list of Dowloads
-
searchForElement
(element)¶ Returns a list of Downloads that where found for element
For each download following attributes are set automatically after this is called download.indexer = self.type download.indexer_instance = self.instance download.status = common.UNKNOWN
-