summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-30 03:55:51 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-30 03:55:51 +0200
commita30cd390528668b65c57531d030e3d9ec154e333 (patch)
tree17c132e42e137f6c5832813f617248584d74e380 /module/plugins
parent[Dereferer][SimpleDereferer] Update (diff)
parentUpdate FileboomMe.py (diff)
downloadpyload-a30cd390528668b65c57531d030e3d9ec154e333.tar.xz
Merge pull request #1437 from GammaC0de/GammaC0de-FileboomMe
[FileboomMe] minor update
Diffstat (limited to 'module/plugins')
-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: