summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-30 02:31:45 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-30 02:31:45 +0200
commit888e7ea57aa7b74b47a35c2661b91f72821eb43d (patch)
tree720e394d50f98bf57557bd31cc5a66227b0c390d /module/plugins/hoster
parent[New Hoster] FileboomMe (diff)
downloadpyload-888e7ea57aa7b74b47a35c2661b91f72821eb43d.tar.xz
Update FileboomMe.py
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/FileboomMe.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/module/plugins/hoster/FileboomMe.py b/module/plugins/hoster/FileboomMe.py
index f2d3a4f61..8e4d0af96 100644
--- a/module/plugins/hoster/FileboomMe.py
+++ b/module/plugins/hoster/FileboomMe.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FileboomMe(SimpleHoster):
__name__ = "FileboomMe"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = r'https?://f(?:ile)?boom\.me/file/(?P<ID>\w+)'
@@ -42,7 +42,7 @@ class FileboomMe(SimpleHoster):
self.html = self.load(post_url,
post={'slow_id': m.group(1)})
- m = re.search(self.LINK_PATTERN, self.html)
+ m = re.search(self.LINK_PATTERN, self.html)
if m:
self.link = urljoin(pyfile.url, m.group(0))
@@ -72,7 +72,7 @@ class FileboomMe(SimpleHoster):
post={'free' : 1,
'uniqueId': uniqueId})
- m = re.search(self.LINK_PATTERN, self.html)
+ m = re.search(self.LINK_PATTERN, self.html)
if m:
self.link = urljoin(pyfile.url, m.group(0))
@@ -85,6 +85,13 @@ class FileboomMe(SimpleHoster):
self.fail(_("Captcha not found"))
else:
+ m = re.search(r'>\s*Please wait ([\d:]+)', self.html)
+ if m:
+ wait_time = 0
+ for v in re.findall(r'(\d+)', m.group(1), re.I):
+ wait_time = 60 * wait_time + int(v)
+ self.wait(wait_time)
+ self.retry()
break
else: