diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-02 23:30:31 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-02 23:30:31 +0100 |
commit | e40872c7c8912dd844e0dd9f76d1301f9bc2dafb (patch) | |
tree | b663864c83c61fdd0e5bd3c2216f51cc1d400c9b /module | |
parent | [UpdateManager] Fix https://github.com/pyload/pyload/issues/940 (diff) | |
download | pyload-e40872c7c8912dd844e0dd9f76d1301f9bc2dafb.tar.xz |
[ShareonlineBiz] Fix getInfo (2)
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/QuickshareCz.py | 1 | ||||
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/hoster/QuickshareCz.py b/module/plugins/hoster/QuickshareCz.py index e1e803e66..85a4dee39 100644 --- a/module/plugins/hoster/QuickshareCz.py +++ b/module/plugins/hoster/QuickshareCz.py @@ -88,7 +88,6 @@ class QuickshareCz(SimpleHoster): def handlePremium(self): download_url = '%s/download_premium.php' % self.jsvars['server'] data = dict((x, self.jsvars[x]) for x in self.jsvars if x in ("ID1", "ID2", "ID4", "ID5")) - self.logDebug("PREMIUM URL:" + download_url, data) self.download(download_url, get=data) diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 1c5567536..f821cd244 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -14,7 +14,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class ShareonlineBiz(SimpleHoster): __name__ = "ShareonlineBiz" __type__ = "hoster" - __version__ = "0.43" + __version__ = "0.44" __pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P<ID>\w+)' @@ -38,14 +38,15 @@ class ShareonlineBiz(SimpleHoster): if url: info['pattern'] = re.match(cls.__pattern__, url).groupdict() - api_url = "http://api.share-online.biz/linkcheck.php?md5=1" - html = getURL(api_url, cookies=False, post={"links": info['pattern']['ID']}, decode=True) - field = html.split(";") + field = getURL("http://api.share-online.biz/linkcheck.php", + get={'md5': "1"}, + post={'links': info['pattern']['ID']}, + decode=True).split(";") - if field[1] is "OK": + if field[1] == "OK": info['fileid'] = field[0] info['status'] = 2 - info['filename'] = field[2] + info['name'] = field[2] info['size'] = field[3] #: in bytes info['md5'] = field[4].strip().lower().replace("\n\n", "") #: md5 @@ -103,6 +104,7 @@ class ShareonlineBiz(SimpleHoster): self.download(download_url) + def checkFile(self): # check download check = self.checkDownload({ |