summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-12 00:51:10 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-12 00:51:10 +0200
commitbc12e7c71cc93bcc22f80dba15111091b4528e03 (patch)
tree96b5204ec3ba1c2db53ca809fb909f0f4518fab0 /module/plugins/hoster
parentmerge (diff)
downloadpyload-bc12e7c71cc93bcc22f80dba15111091b4528e03.tar.xz
account plugin change, server methods for accounts
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index 7958de794..8646fcc88 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -20,10 +20,12 @@ def getInfo(urls):
src = getURL(api_url_base, post=api_param_file)
result = []
for i, res in enumerate(src.split("\n")):
+ if not res:
+ continue
fields = res.split(";")
- status = 2 if self.api_data["status"] == "OK" else 3
+ status = 2 if fields[1] == "OK" else 3
result.append((fields[2], int(fields[3]), status, urls[i]))
- return result
+ yield result
class ShareonlineBiz(Hoster):
__name__ = "ShareonlineBiz"