summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-25 20:26:44 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-25 20:26:44 +0200
commit7990750e54ff1212adad2064c7c9f263efa5948a (patch)
treed32db25c330ff0596aaee500c6609b0e7dee2ba6
parentimproved speed for high bandwith connections (diff)
downloadpyload-7990750e54ff1212adad2064c7c9f263efa5948a.tar.xz
SO fix
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index afc7312f1..2a6645e86 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -101,6 +101,10 @@ class ShareonlineBiz(Hoster):
if r"Der Download ist Ihnen zu langsam" not in self.html and r"The download is too slow for you" not in self.html:
self.fail("Plugin defect. Save dumps and report.")
+
+ if "Kein weiterer Download-Thread möglich!" in self.html: #TODO corresponding translation
+ self.retry(wait_time=30, reason=_("Parallel download issue"))
+
m = re.search("var wait=(\d+);", self.html[1])
wait_time = int(m.group(1)) if m else 30
self.setWait(wait_time)