-
-
Notifications
You must be signed in to change notification settings - Fork 738
module.plugins.Crypter.Crypter
Jonas edited this page Jun 8, 2016
·
1 revision
_class _module.plugins.Crypter. Crypter(pyfile)
__init__(pyfile)
The whole SourceCode can be found here: (SourceCode)
Methods
| Name | Description |
|---|---|
__init__(pyfile) |
|
checkDownload(rules[, api_size, max_size, ...]) |
checks the content of the last downloaded file, re match is saved to lastCheck |
checkForSameFiles([starting]) |
checks if same file was/is downloaded within same package |
checksum([local_file]) |
return codes: |
clean() |
clean everything and remove references |
correctCaptcha() |
|
createPackages() |
create new packages from self.packages |
decrypt(pyfile) |
|
decryptCaptcha(url[, get, post, cookies, ...]) |
Loads a captcha and decrypts it with ocr, plugin, user input |
delStorage(key) |
Delete entry in db |
download(url[, get, post, ref, cookies, ...]) |
Downloads the content at url to download folder |
fail(reason) |
fail and give reason |
getChunkCount() |
|
getConf(option) |
see getConfig |
getConfig(option) |
Returns config value for current plugin |
getPassword() |
get the password the user provided in the package |
getStorage([key, default]) |
Retrieves saved value or dict of all saved entries if key is None |
init() |
initialize the plugin (in addition to init) |
invalidCaptcha() |
|
load(url[, get, post, ref, cookies, ...]) |
Load content at url and returns it |
logDebug(*args) |
|
logError(*args) |
|
logInfo(*args) |
|
logWarning(*args) |
|
offline() |
fail and indicate file is offline |
preprocessing(thread) |
prepare |
process(pyfile) |
the ‘main’ method of every plugin, you have to overwrite it |
resetAccount() |
dont use account and retry download |
retrieve(*args, **kwargs) |
same as getStorage |
retry([max_tries, wait_time, reason]) |
Retries and begin again from the beginning |
setConf(option, value) |
see setConfig |
setConfig(option, value) |
Set config value for current plugin |
setStorage(key, value) |
Saves a value persistently to the database |
setWait(seconds[, reconnect]) |
Set a specific wait time later used with wait |
setup() |
setup for enviroment and other things, called before downloading (possibly more than one time) |
store(key, value) |
same as setStorage |
tempOffline() |
fail and indicates file ist temporary offline, the core may take consequences |
wait() |
waits the time previously set |
The whole SourceCode can be found here: (SourceCode)
####packages = None
Put all packages here. It’s a list of tuples like: ( name, [list of links], folder )
####urls = None
List of urls, pyLoad will generate packagenames
####preprocessing(thread)
prepare
####createPackages()
create new packages from self.packages
This page may no longer be valid. If you find something wrong, please report it.