summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-28 16:04:10 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-28 16:04:10 +0100
commit8b3589dd394d81177bf4680dddb5bdb9506b89ea (patch)
treef9e4b92955fe2577ef25e7bf07911bda3b5d7590 /module/plugins/internal
parent[SimpleHoster] Improve wait method (diff)
downloadpyload-8b3589dd394d81177bf4680dddb5bdb9506b89ea.tar.xz
Update plugins to last changes
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/XFSPHoster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py
index 5452b9444..9e14fffbc 100644
--- a/module/plugins/internal/XFSPHoster.py
+++ b/module/plugins/internal/XFSPHoster.py
@@ -229,8 +229,8 @@ class XFSPHoster(SimpleHoster):
elif 'premium' in self.errmsg and 'require' in self.errmsg:
self.fail(_("File can be downloaded by premium users only"))
elif 'limit' in self.errmsg:
- self.wantReconnect = True
- self.retry(25, 1 * 60 * 60, "Download limit exceeded")
+ self.wait(1 * 60 * 60, True)
+ self.retry(25, reason="Download limit exceeded")
elif 'countdown' in self.errmsg or 'Expired' in self.errmsg:
self.retry(reason=_("Link expired"))
elif 'maintenance' in self.errmsg or 'maintainance' in self.errmsg:
@@ -275,7 +275,7 @@ class XFSPHoster(SimpleHoster):
if not self.premium:
m = re.search(self.WAIT_PATTERN, self.html)
if m:
- wait_time = int(m.group(1)) + 1
+ wait_time = int(m.group(1))
self.setWait(wait_time, False)
else:
wait_time = 0