diff options
author | 2015-05-30 04:10:08 +0200 | |
---|---|---|
committer | 2015-05-30 04:10:08 +0200 | |
commit | 58cb1268e9d92ae287e1ae572f17b003d44183a2 (patch) | |
tree | 06110e1d72f3c81da48d9febc9e10f1aaa806979 | |
parent | Merge pull request #1437 from GammaC0de/GammaC0de-FileboomMe (diff) | |
download | pyload-58cb1268e9d92ae287e1ae572f17b003d44183a2.tar.xz |
[FileboomMe] Tiny cleanup
-rw-r--r-- | module/plugins/hoster/FileboomMe.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/FileboomMe.py b/module/plugins/hoster/FileboomMe.py index 8e4d0af96..9cdeebe3d 100644 --- a/module/plugins/hoster/FileboomMe.py +++ b/module/plugins/hoster/FileboomMe.py @@ -3,6 +3,7 @@ import re from urlparse import urljoin + from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo @@ -20,10 +21,10 @@ class FileboomMe(SimpleHoster): NAME_PATTERN = r'<i class="icon-download"></i>\s*(?P<N>.+?)\s*<' SIZE_PATTERN = r'File size: (?P<S>[\d.,]+) (?P<U>[\w^_]+)' - OFFLINE_PATTERN = r'>This file is no longer available' + WAIT_PATTERN = r'<div class="tik-tak">([\d:]+)' - LINK_PATTERN = r'/file/url\.html\?file=\w+' + LINK_PATTERN = r'/file/url\.html\?file=\w+' CAPTCHA_PATTERN = r'<img .* src="(/file/captcha.html\?v=\w+)"' @@ -61,7 +62,7 @@ class FileboomMe(SimpleHoster): 'free' : 1, 'freeDownloadRequest': 1, 'uniqueId' : uniqueId}) - + if 'The verification code is incorrect' in self.html: self.invalidCaptcha() @@ -71,7 +72,7 @@ class FileboomMe(SimpleHoster): self.html = self.load(post_url, post={'free' : 1, 'uniqueId': uniqueId}) - + m = re.search(self.LINK_PATTERN, self.html) if m: self.link = urljoin(pyfile.url, m.group(0)) |