summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
commitb1759bc440cd6013837697eb8de540914f693ffd (patch)
treed170caf63d7f65e44d23ea2d91a65759a1665928 /module/plugins/hoster/FilecloudIo.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/hoster/FilecloudIo.py')
-rw-r--r--module/plugins/hoster/FilecloudIo.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/module/plugins/hoster/FilecloudIo.py b/module/plugins/hoster/FilecloudIo.py
index 346e9c444..d9013630d 100644
--- a/module/plugins/hoster/FilecloudIo.py
+++ b/module/plugins/hoster/FilecloudIo.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilecloudIo(SimpleHoster):
__name__ = "FilecloudIo"
__type__ = "hoster"
- __version__ = "0.09"
+ __version__ = "0.10"
__pattern__ = r'http://(?:www\.)?(?:filecloud\.io|ifile\.it|mihd\.net)/(?P<ID>\w+)'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
@@ -39,12 +39,12 @@ class FilecloudIo(SimpleHoster):
def setup(self):
- self.resumeDownload = True
- self.multiDL = True
- self.chunkLimit = 1
+ self.resume_download = True
+ self.multi_dl = True
+ self.chunk_limit = 1
- def handleFree(self, pyfile):
+ def handle_free(self, pyfile):
data = {"ukey": self.info['pattern']['ID']}
m = re.search(self.AB1_PATTERN, self.html)
@@ -68,13 +68,13 @@ class FilecloudIo(SimpleHoster):
json_url = "http://filecloud.io/download-request.json"
res = self.load(json_url, post=data)
- self.logDebug(res)
+ self.log_debug(res)
res = json_loads(res)
if "error" in res and res['error']:
self.fail(res)
- self.logDebug(res)
+ self.log_debug(res)
if res['captcha']:
data['ctype'] = "recaptcha"
@@ -83,13 +83,13 @@ class FilecloudIo(SimpleHoster):
json_url = "http://filecloud.io/download-request.json"
res = self.load(json_url, post=data)
- self.logDebug(res)
+ self.log_debug(res)
res = json_loads(res)
if "retry" in res and res['retry']:
- self.invalidCaptcha()
+ self.invalid_captcha()
else:
- self.correctCaptcha()
+ self.correct_captcha()
break
else:
self.fail(_("Incorrect captcha"))
@@ -109,13 +109,13 @@ class FilecloudIo(SimpleHoster):
self.fail(_("Unexpected server response"))
- def handlePremium(self, pyfile):
+ def handle_premium(self, pyfile):
akey = self.account.getAccountData(self.user)['akey']
ukey = self.info['pattern']['ID']
- self.logDebug("Akey: %s | Ukey: %s" % (akey, ukey))
+ self.log_debug("Akey: %s | Ukey: %s" % (akey, ukey))
rep = self.load("http://api.filecloud.io/api-fetch_download_url.api",
post={"akey": akey, "ukey": ukey})
- self.logDebug("FetchDownloadUrl: " + rep)
+ self.log_debug("FetchDownloadUrl: " + rep)
rep = json_loads(rep)
if rep['status'] == 'ok':
self.link = rep['download_url']