summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-03 16:57:55 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-03 16:57:55 +0100
commit03f3b86f500c495932fd118b54569d92f700847c (patch)
treead3632f59e0889c7485f2261113aef3da983b4dc /module/plugins/hoster/FilecloudIo.py
parent[SimpleHoster] Fix file_info stuff (diff)
downloadpyload-03f3b86f500c495932fd118b54569d92f700847c.tar.xz
Code cosmetics about file_info and other stuff
Diffstat (limited to 'module/plugins/hoster/FilecloudIo.py')
-rw-r--r--module/plugins/hoster/FilecloudIo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/FilecloudIo.py b/module/plugins/hoster/FilecloudIo.py
index a5469ceb9..f31be155d 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.03"
+ __version__ = "0.04"
__pattern__ = r'http://(?:www\.)?(?:filecloud\.io|ifile\.it|mihd\.net)/(?P<ID>\w+).*'
@@ -39,7 +39,7 @@ class FilecloudIo(SimpleHoster):
def handleFree(self):
- data = {"ukey": self.file_info['ID']}
+ data = {"ukey": self.info['ID']}
m = re.search(self.AB1_PATTERN, self.html)
if m is None:
@@ -94,12 +94,12 @@ class FilecloudIo(SimpleHoster):
if response['dl']:
self.html = self.load('http://filecloud.io/download.html')
- m = re.search(self.LINK_PATTERN % self.file_info['ID'], self.html)
+ m = re.search(self.LINK_PATTERN % self.info['ID'], self.html)
if m is None:
self.error(_("LINK_PATTERN not found"))
- if "size" in self.file_info and self.file_info['size']:
- self.check_data = {"size": int(self.file_info['size'])}
+ if "size" in self.info and self.info['size']:
+ self.check_data = {"size": int(self.info['size'])}
download_url = m.group(1)
self.download(download_url)
@@ -109,7 +109,7 @@ class FilecloudIo(SimpleHoster):
def handlePremium(self):
akey = self.account.getAccountData(self.user)['akey']
- ukey = self.file_info['ID']
+ ukey = self.info['ID']
self.logDebug("Akey: %s | Ukey: %s" % (akey, ukey))
rep = self.load("http://api.filecloud.io/api-fetch_download_url.api",
post={"akey": akey, "ukey": ukey})