summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilerNet.py
diff options
context:
space:
mode:
authorGravatar OndrejIT <git@ondrej.it> 2016-06-07 11:08:04 +0200
committerGravatar OndrejIT <git@ondrej.it> 2016-06-07 11:08:04 +0200
commit36a5cd2da8c7dff928cbaa16688362632ae57ad9 (patch)
treef6cbb2e3309682ecd9b7f68ba26519d0e2034e72 /module/plugins/hoster/FilerNet.py
parentAdd https support for UlozTo hoster. (diff)
parent[FilerNet] Fix #2489 (diff)
downloadpyload-36a5cd2da8c7dff928cbaa16688362632ae57ad9.tar.xz
Merge branch 'stable' of https://github.com/pyload/pyload into stable
Conflicts: module/plugins/hoster/UlozTo.py
Diffstat (limited to 'module/plugins/hoster/FilerNet.py')
-rw-r--r--module/plugins/hoster/FilerNet.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py
index a1ad5d8c9..cc4788772 100644
--- a/module/plugins/hoster/FilerNet.py
+++ b/module/plugins/hoster/FilerNet.py
@@ -32,7 +32,7 @@ class FilerNet(SimpleHoster):
INFO_PATTERN = r'<h1 class="page-header">Free Download (?P<N>\S+) <small>(?P<S>[\w.]+) (?P<U>[\w^_]+)</small></h1>'
OFFLINE_PATTERN = r'Nicht gefunden'
- WAIT_PATTERN = r'musst du <span id="time">(\d+)'
+ WAIT_PATTERN = r'var count = (\d+);'
LINK_FREE_PATTERN = LINK_PREMIUM_PATTERN = r'href="([^"]+)">Get download</a>'
@@ -51,10 +51,7 @@ class FilerNet(SimpleHoster):
self.captcha = ReCaptcha(pyfile)
response, challenge = self.captcha.challenge()
- header = self.load(pyfile.url,
- post={'recaptcha_challenge_field': challenge,
- 'recaptcha_response_field' : response,
- 'hash' : inputs['hash']},
- just_header=True)
-
- self.link = header.get('location')
+ self.download(pyfile.url,
+ post={'recaptcha_challenge_field': challenge,
+ 'recaptcha_response_field' : response,
+ 'hash' : inputs['hash']})