From 64917a9bf552ef3a499730a945312e764aca03b9 Mon Sep 17 00:00:00 2001
From: Nitzo <nitzo2001@yahoo.com>
Date: Sun, 5 Jun 2016 00:24:05 +0300
Subject: [FilerNet] Fix #2489

---
 module/plugins/hoster/FilerNet.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

(limited to 'module/plugins/hoster')

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']})
-- 
cgit v1.2.3