diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-05-30 23:43:01 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-05-30 23:43:01 +0200 |
commit | 0dc4237338b87169e29a8277607d313341773afa (patch) | |
tree | c37911035f4ee74f6194ac318b808b4f635f57de /module/plugins/hoster/ShareonlineBiz.py | |
parent | Backed out changeset: 240404fc2b83 (diff) | |
download | pyload-0dc4237338b87169e29a8277607d313341773afa.tar.xz |
commit plugins only
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 719235565..187ee062d 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -43,7 +43,7 @@ class ShareonlineBiz(Hoster): __name__ = "ShareonlineBiz" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?(share\-online\.biz|egoshare\.com)/(download.php\?id\=|dl/)[\w]+" - __version__ = "0.29" + __version__ = "0.30" __description__ = """Shareonline.biz Download Hoster""" __author_name__ = ("spoob", "mkaay", "zoidberg") __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "zoidberg@mujmail.cz") @@ -57,6 +57,8 @@ class ShareonlineBiz(Hoster): self.resumeDownload = self.multiDL = self.premium #self.chunkLimit = 1 + + self.check_data = None def process(self, pyfile): if self.premium: @@ -74,9 +76,8 @@ class ShareonlineBiz(Hoster): self.account.getAccountInfo(self.user, True) self.retry(reason=_("Invalid download ticket")) - self.logDebug('DOWNLOAD SIZE: %d B (%d expected)' % (self.pyfile.size , self.exp_size)) - if self.pyfile.size != self.exp_size: - self.retry(reason="Incorrect file size: %d B" % self.pyfile.size) + if self.api_data: + self.check_data = {"size": int(self.api_data['size']), "md5": self.api_data['md5']} def downloadAPIData(self): api_url_base = "http://api.share-online.biz/linkcheck.php?md5=1" @@ -95,7 +96,7 @@ class ShareonlineBiz(Hoster): def handleFree(self): self.downloadAPIData() self.pyfile.name = self.api_data["filename"] - self.pyfile.size = self.exp_size = int(self.api_data["size"]) + self.pyfile.size = int(self.api_data["size"]) self.html = self.load(self.pyfile.url, cookies = True) #refer, stuff self.setWait(3) @@ -145,7 +146,7 @@ class ShareonlineBiz(Hoster): self.offline() self.pyfile.name = dlinfo["name"] - self.pyfile.size = self.exp_size = int(dlinfo["size"]) + self.pyfile.size = int(dlinfo["size"]) dlLink = dlinfo["url"] if dlLink == "server_under_maintenance": |