summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-18 11:50:43 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-18 11:50:43 +0200
commit339b2e07d78b15ca014ee12f1501cdb235d9b064 (patch)
tree98964f4fe5ef2d9b584a5de291d4ff719903a836 /module/plugins/hoster/ShareonlineBiz.py
parent[XFSHoster] Fix https://github.com/pyload/pyload/issues/1296 (diff)
downloadpyload-339b2e07d78b15ca014ee12f1501cdb235d9b064.tar.xz
[SimpleHoster] Fix create_getInfo
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index 505222fce..9d0cb631b 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -36,15 +36,13 @@ class ShareonlineBiz(SimpleHoster):
@classmethod
- def getInfo(cls, url="", html=""):
- info = {'name': urlparse.urlparse(urllib.unquote(url)).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 3 if url else 1, 'url': url}
+ def apiInfo(cls, url):
+ info = super(ShareonlineBiz, cls).apiInfo(url)
if url:
- info['pattern'] = re.match(cls.__pattern__, url).groupdict()
-
field = getURL("http://api.share-online.biz/linkcheck.php",
get={'md5': "1"},
- post={'links': info['pattern']['ID']},
+ post={'links': re.match(cls.__pattern__, url).group("ID")},
decode=True).split(";")
if field[1] == "OK":