diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/UptoboxCom.py | 4 | ||||
-rw-r--r-- | module/plugins/internal/Base.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 12 |
3 files changed, 10 insertions, 8 deletions
diff --git a/module/plugins/hoster/UptoboxCom.py b/module/plugins/hoster/UptoboxCom.py index d6baa3990..4f29b24b7 100644 --- a/module/plugins/hoster/UptoboxCom.py +++ b/module/plugins/hoster/UptoboxCom.py @@ -6,7 +6,7 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo class UptoboxCom(XFSHoster): __name__ = "UptoboxCom" __type__ = "hoster" - __version__ = "0.21" + __version__ = "0.22" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(uptobox|uptostream)\.com/\w{12}' @@ -22,6 +22,8 @@ class UptoboxCom(XFSHoster): LINK_PATTERN = r'"(https?://\w+\.uptobox\.com/d/.*?)"' + DL_LIMIT_PATTERN = r'>You have to wait (.+) to launch a new download<' + def setup(self): self.multiDL = True diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py index 843d2ad11..bc9ef9158 100644 --- a/module/plugins/internal/Base.py +++ b/module/plugins/internal/Base.py @@ -355,7 +355,7 @@ class Base(Plugin): raise Retry(encode(msg)) #@TODO: Remove `encode` in 0.4.10 - def retry_captcha(self, attemps=10, wait=1, msg=_("Wrong captcha")): + def retry_captcha(self, attemps=10, wait=1, msg=_("Max captcha retries reached")): self.captcha.invalid() self.retry(attemps, wait, msg) diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 3a3e44619..5d6892ec5 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -16,7 +16,7 @@ from module.utils import fixup, fs_encode, parseFileSize as parse_size class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.91" + __version__ = "1.92" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -353,8 +353,8 @@ class SimpleHoster(Hoster): self.log_warning(self.info['error']) wait_time = parse_time(errmsg) - self.wantReconnect = wait_time > 300 - self.retry(1, wait_time, _("Download limit exceeded")) + self.wait(wait_time, reconnect=wait_time > 300) + self.restart(_("Download limit exceeded"), premium=True) if self.HAPPY_HOUR_PATTERN and re.search(self.HAPPY_HOUR_PATTERN, self.html): self.multiDL = True @@ -373,8 +373,8 @@ class SimpleHoster(Hoster): if re.search('limit|wait|slot', errmsg, re.I): wait_time = parse_time(errmsg) - self.wantReconnect = wait_time > 300 - self.retry(1, wait_time, _("Download limit exceeded")) + self.wait(wait_time, reconnect=wait_time > 300) + self.restart(_("Download limit exceeded"), premium=True) elif re.search('country|ip|region|nation', errmsg, re.I): self.fail(_("Connection from your current IP address is not allowed")) @@ -414,7 +414,7 @@ class SimpleHoster(Hoster): waitmsg = m.group(0).strip() wait_time = parse_time(waitmsg) - self.wait(wait_time, wait_time > 300) + self.wait(wait_time, econnect=wait_time > 300) self.info.pop('error', None) |